wangzq 2 years ago
parent
commit
0d08e93f65
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Modules/Book/Services/BookConfigService.php

+ 1 - 0
app/Modules/Book/Services/BookConfigService.php

@@ -323,6 +323,7 @@ class BookConfigService
             ->whereNotIn('book_configs.cp_source',$hidden_cp)
             ->whereNotIn('book_configs.cp_source',$hidden_cp)
             // ->where('book_configs.is_high_quality',1)
             // ->where('book_configs.is_high_quality',1)
             ->where('book_categories.pid',$channel)
             ->where('book_categories.pid',$channel)
+            ->orderBy('book_configs.is_high_quality','desc')
             ->inRandomOrder()
             ->inRandomOrder()
             ->limit($supplement_count)
             ->limit($supplement_count)
              ->pluck('book_configs.bid')->all();
              ->pluck('book_configs.bid')->all();