From b5da654cd43d9e64ad4cad049137e824623a4258 Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 15 Apr 2022 17:03:24 +0800 Subject: [PATCH] Update Goods.php --- app/data/controller/shop/Goods.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/data/controller/shop/Goods.php b/app/data/controller/shop/Goods.php index 173c784c5..0d172f6c8 100644 --- a/app/data/controller/shop/Goods.php +++ b/app/data/controller/shop/Goods.php @@ -70,7 +70,7 @@ class Goods extends Controller protected function _page_filter(array &$data) { $this->marks = ShopGoodsMark::items(); - $this->cates = ShopGoodsCate::treeTable(true); + $this->cates = ShopGoodsCate::treeTable(); GoodsService::instance()->bindData($data, false); } @@ -136,7 +136,7 @@ class Goods extends Controller $data['cateids'] = str2arr($data['cateids'] ?? ''); // 其他表单数据 $this->marks = ShopGoodsMark::items(); - $this->cates = ShopGoodsCate::treeTable(); + $this->cates = ShopGoodsCate::treeTable(true); $this->trucks = ExpressService::instance()->templates(); $this->upgrades = UserUpgradeService::instance()->levels(); $this->payments = BaseUserPayment::mk()->where(['status' => 1, 'deleted' => 0])->order('sort desc,id desc')->column('type,code,name', 'code');