李昊 4 lat temu
rodzic
commit
613a02cff8

+ 1 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/Media/MediaRepository.cs

@@ -939,7 +939,7 @@ namespace GxPress.Repository.Implement.Media
             //好评
             if (request.SortSift == 3)
                 query.OrderByDesc(nameof(Entity.tede2.Media.Media.CommentScore));
-            if (request.PressSift.Count() > 0)
+            if (request.PressSift!=null&&request.PressSift.Count() > 0)
                 query.WhereIn(nameof(Entity.tede2.Media.Media.Press), request.PressSift);
             if (!string.IsNullOrEmpty(request.KeyWord))
                 query.WhereLike(nameof(Entity.tede2.Media.Media.Title), $"%{request.KeyWord}%");