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