Browse Source

feat: 优化今日推荐排序

xiansin 2 years ago
parent
commit
3b922ea1dc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      server/app/Http/Controllers/V1/EpisodeController.php

+ 1 - 0
server/app/Http/Controllers/V1/EpisodeController.php

xqd
@@ -128,6 +128,7 @@ class EpisodeController extends Controller
         $offset = ($page - 1) * $limit;
         $episodes = Episode::withCount(['lists'])
             ->where('is_opend', 1)
+            ->where('sort', '<>',0)
             ->where('platform', \user()->info->platform)
             //->inRandomOrder()
             ->orderBy('sort')