Explorar o código

结算后台-商品定时上下架bugfix

kevin_zhangl %!s(int64=2) %!d(string=hai) anos
pai
achega
fa18d605cf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/models/forms/ShopGoodsForm.php

+ 1 - 1
common/models/forms/ShopGoodsForm.php

@@ -208,7 +208,7 @@ class ShopGoodsForm extends Model
             $model = $this->_model;
             $model->GOODS_NAME = $this->goodsName;
             $model->TYPE = 0;
-            $model->CATE_ID = $this->type;
+            $model->CATE_ID = $this->type ?? $this->_model->CATE_ID;
             $model->SELL_DISCOUNT = $this->sellDiscount;
             $model->GIFT_TYPE = implode(',',$this->giftType);
             // $model->SELL_TYPE = implode(',',$this->sellType);