Jelajahi Sumber

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

kevin_zhangl 2 tahun lalu
induk
melakukan
fa18d605cf
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);