Update ShopGoods.php

This commit is contained in:
Anyon 2020-09-25 16:04:34 +08:00
parent bd811f19d3
commit 60835b8219

View File

@ -153,7 +153,7 @@ class ShopGoods extends Controller
$data['code'] = CodeExtend::uniqidNumber(12, 'G');
}
if ($this->request->isGet()) {
$data['mark'] = mark_string_array($data['mark']);
$data['mark'] = mark_string_array($data['mark'] ?? '');
$this->marks = GoodsService::instance()->getMarkList();
$this->cates = GoodsService::instance()->getCateList('arr2table');
$fields = 'goods_sku `sku`,goods_code,goods_spec `key`,price_selling `selling`,price_market `market`,number_virtual `virtual`,number_express `express`,status';