zhuchengjie преди 3 години
родител
ревизия
37d9dd6912
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      app/Modules/Book/Models/BookConfig.php

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

@@ -398,6 +398,7 @@ class BookConfig extends Model
             ->where('book_categories.id', $categories_id)
             ->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);