feat : refund

This commit is contained in:
2025-03-27 11:23:36 +08:00
parent c4bc83f9e2
commit fb8fb12c7f
3 changed files with 19 additions and 2 deletions

View File

@@ -102,6 +102,7 @@ class SkuService extends BaseService
$insertModel->order_num = 0;
$insertModel->cancel_num = 0;
$insertModel->refund_num = 0;
$insertModel->occupied = $this->request->input('occupied',1);
// $insertModel->behind_refund_num = 0;
$insertModel->saleable = $this->request->input('saleable');
$insertModel->is_add_staple_food = $this->request->input('is_add_staple_food');
@@ -169,6 +170,7 @@ class SkuService extends BaseService
$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');
$skuInfo->occupied = $this->request->input('occupied',1);
if (!$skuInfo->save()) throw new ErrException('修改失败');