dyjh 6 lat temu
rodzic
commit
36013a37e1

+ 1 - 1
app/Http/Controllers/Admin/Album/ProductController.php

xqd
@@ -75,7 +75,7 @@ class ProductController extends Controller
         }
         $cat = AlbumCatModel::where([
             ['parent_id',$cat_id],['store_id',$this->getStoreId()]
-        ])->orderByDesc('sort')->get();
+        ])->orderByDesc('sort')->get()->toArray();
         if (empty($cat)) {
             $cat[] = [
                 'name' => '请先添加二级分类!',