From af20d57aab523a57cd90fecaf5ee0cdbbc40eae8 Mon Sep 17 00:00:00 2001 From: liangyuyan <1103300295@qq.com> Date: Fri, 18 Sep 2020 09:55:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=8F=AF=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Controllers/v3/GoodsController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Admin/Controllers/v3/GoodsController.php b/app/Admin/Controllers/v3/GoodsController.php index c56c975..b855eb5 100644 --- a/app/Admin/Controllers/v3/GoodsController.php +++ b/app/Admin/Controllers/v3/GoodsController.php @@ -58,9 +58,10 @@ class GoodsController extends AdminController $grid->store_id->display(function ($storeId) use($storeList){ return isset($storeList[$storeId]) ? $storeList[$storeId] : ''; }); - $grid->category_id->display(function ($categoryId) use($categoryList){ - return isset($categoryList[$categoryId]) ? $categoryList[$categoryId] : ''; - }); + $grid->category_id->select($categoryList); + // $grid->category_id->display(function ($categoryId) use($categoryList){ + // return isset($categoryList[$categoryId]) ? $categoryList[$categoryId] : ''; + // }); $grid->goods_category_id->display(function ($goodsCategoryId) use($goodsCategoryList){ return isset($goodsCategoryList[$goodsCategoryId]) ? $goodsCategoryList[$goodsCategoryId] : ''; });