feat : config
This commit is contained in:
@@ -104,6 +104,8 @@ class SkuService extends BaseService
|
||||
$insertModel->refund_num = 0;
|
||||
// $insertModel->behind_refund_num = 0;
|
||||
$insertModel->saleable = $this->request->input('saleable');
|
||||
$insertModel->is_add_staple_food = $this->request->input('is_add_staple_food');
|
||||
$insertModel->code_number = $this->request->input('code_number');
|
||||
$insertModel->sort = $this->request->input('sort');
|
||||
|
||||
if (!$insertModel->save()) throw new ErrException('添加失败');
|
||||
@@ -165,6 +167,8 @@ class SkuService extends BaseService
|
||||
$skuInfo->saleable = $this->request->input('saleable');
|
||||
$skuInfo->title = $this->request->input('title');
|
||||
$skuInfo->sort = $this->request->input('sort');
|
||||
$skuInfo->is_add_staple_food = $this->request->input('is_add_staple_food');
|
||||
$skuInfo->code_number = $this->request->input('code_number');
|
||||
|
||||
if (!$skuInfo->save()) throw new ErrException('修改失败');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user