Explorar el Código

管理后台商品来源bugfix

kevin_zhangl hace 2 años
padre
commit
8921ff2f0a

+ 1 - 1
backendApi/modules/v1/models/lists/shop/GoodsList.php

@@ -50,7 +50,7 @@ class GoodsList extends \common\libs\dataList\DataList implements DataListInterf
                 'CATE_ID' => [
                     'header' => '商品来源',
                     'value' => function($row){
-                        return ShopGoods::GOODS_TYPE[$row['CATE_ID']]['name'];
+                        return ShopGoods::GOODS_TYPE[$row['CATE_ID']]['name'] ?? '';
                     },
                     'headerOther' => ['width' => '150'],
                 ],

+ 1 - 0
common/models/forms/DecPackageForm.php

@@ -116,6 +116,7 @@ class DecPackageForm extends Model
         $model->AMOUNT = $this->amount;
         $model->PV = $this->amountPv;
         $model->LEVEL_ID = $this->levelId;
+        $model->CATE_ID = 1;
         $model->PACKAGE_CONTENT = $this->packageContent;
         $model->STORE_NUMS = $this->storenums;
         $model->SORT = $this->sort;