Browse Source

'补充过滤条件'

zhuchengjie 3 năm trước cách đây
mục cha
commit
abec6cf0f1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)