|
@@ -154,6 +154,9 @@ class BookConfigService
|
|
|
->where('is_enabled', 1)
|
|
|
->get();
|
|
|
$bids = $free_books->pluck('bid')->all();
|
|
|
+ if(empty($bids)){
|
|
|
+ return [];
|
|
|
+ }
|
|
|
$book_configs = BookConfig::whereIn('bid', $bids)
|
|
|
->where('is_on_shelf', 2)
|
|
|
->select('bid', 'book_name', 'cover')
|