Explorar o código

'补充过滤条件'

zhuchengjie %!s(int64=3) %!d(string=hai) anos
pai
achega
abec6cf0f1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)