feat: sku

This commit is contained in:
2025-01-22 11:15:02 +08:00
parent 9b7390129d
commit acca7ba7c7
4 changed files with 23 additions and 1 deletions

View File

@@ -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('修改失败');