فهرست منبع

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

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);