Browse Source

Merge branch 'hotfix-phoenix' of http://120.24.33.109:11081/hyzjshwo/mp_lanzu_cat into hotfix-phoenix

master
lanzu_qinsheng 5 years ago
parent
commit
e508f53769
  1. 7
      app/Admin/Controllers/v3/GoodsController.php

7
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] : '';
});

Loading…
Cancel
Save