feat: sku
This commit is contained in:
@@ -83,6 +83,7 @@ class SkuService extends BaseService
|
||||
$insertModel->ahead_refund_num = 0;
|
||||
$insertModel->behind_refund_num = 0;
|
||||
$insertModel->saleable = $this->request->input('saleable');
|
||||
$insertModel->sort = $this->request->input('sort');
|
||||
|
||||
if (!$insertModel->save()) throw new ErrException('添加失败');
|
||||
|
||||
@@ -136,6 +137,7 @@ class SkuService extends BaseService
|
||||
$skuInfo->total_stock = $this->request->input('stock');
|
||||
$skuInfo->saleable = $this->request->input('saleable');
|
||||
$skuInfo->title = $this->request->input('title');
|
||||
$skuInfo->sort = $this->request->input('sort');
|
||||
|
||||
if (!$skuInfo->save()) throw new ErrException('修改失败');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user