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