6
0
Fork 0

添加后台验证售后调整数量

release
vine_liutk 2022-03-23 14:51:20 +08:00
parent c1038c1e59
commit 391e4082a6
1 changed files with 5 additions and 1 deletions

View File

@ -60,7 +60,11 @@ class AfterSaleVerify extends Form implements LazyRenderable
throw new BizException('退款金额不能大于商品实付金额');
}
}
$afterSaleService->verify($afterSale, $input['remarks3'], (int) Arr::get($input, 'amount', 0), (int) Arr::get($input, 'num', 0) ?: $afterSale->num);
$num = (int) Arr::get($input, 'num', 0) ?: $afterSale->num ;
if($num > $afterSale->num){
throw new BizException('调整数量不能大于下单数量');
}
$afterSaleService->verify($afterSale, $input['remarks3'], (int) Arr::get($input, 'amount', 0), $num);
} elseif ($input['state'] == 1) {//需要补充资料
$afterSaleService->backApply($afterSale, $input['remarks1']);
}