zhuchengjie 3 лет назад
Родитель
Сommit
abec6cf0f1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Http/Controllers/QuickApp/Book/BookController.php

+ 1 - 1
app/Http/Controllers/QuickApp/Book/BookController.php

@@ -286,7 +286,7 @@ class BookController extends BaseController
             ->where('book_categories.pid',$channel)
             ->get()->pluck('book_configs.bid')->toArray();
 
-        return array_fill(array_merge($bid_list,$rand_bid));
+        return array_filter(array_merge($bid_list,$rand_bid));
     }
 
     private function getBidCidFromUrl(string $url)