소스 검색

'用户获取相同推荐书籍限制外部上架'

zhuchengjie 3 년 전
부모
커밋
8dc41d8068
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Modules/Book/Models/BookConfig.php

+ 1 - 0
app/Modules/Book/Models/BookConfig.php

@@ -449,6 +449,7 @@ class BookConfig extends Model
             ->where('book_categories.channel_name', $channel_name)
             ->where('book_configs.bid', '!=', $bid)
             ->where('book_configs.is_high_quality', 1)
+            ->where('book_configs.is_on_shelf', 2)
             ->orderBy('recommend_index', 'desc')->get();
         $count = $res->count() >= $num ? $num : $res->count();
         return $res->random($count);