6
0
Fork 0

调整售后修改数量

release
vine_liutk 2022-03-23 15:01:23 +08:00
parent 391e4082a6
commit 7ac3de3449
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ class AfterSaleVerify extends Form implements LazyRenderable
throw new BizException('退款金额不能大于商品实付金额');
}
}
$num = (int) Arr::get($input, 'num', 0) ?: $afterSale->num ;
if($num > $afterSale->num){
$num = (int) Arr::get($input, 'num', 0) ?: $afterSale->num;
if ($num > $afterSale->orderProduct->quantity) {
throw new BizException('调整数量不能大于下单数量');
}
$afterSaleService->verify($afterSale, $input['remarks3'], (int) Arr::get($input, 'amount', 0), $num);