李昊 4 роки тому
батько
коміт
8abadaba1f

+ 1 - 0
gx_api/GxPress/Api/GxPress.Api/AppControllers/AppPageController.cs

@@ -326,6 +326,7 @@ namespace GxPress.Api.AppControllers
                     result.Items = list;
                     return result;
                 }
+                return await appChannelService.GetChannelCategoryMediaPageAsync(request);
             }
             return await appChannelService.GetChannelCategoryMediaPageAsync(request);
         }

+ 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!=null&&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}%");