6
0
Fork 0

调整打款凭证上传时报错

release
vine_liutk 2022-02-10 15:50:32 +08:00
parent fab6974b83
commit a407335bed
1 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ class OrderService
*
* @return void
*/
public function payOrder(DealerOrder $order, string $payImage)
public function payOrder(DealerOrder $order, ?string $payImage)
{
if (!$order->isPendinged()) {
throw new BizException('订单状态异常,请刷新后再试');
@ -144,7 +144,7 @@ class OrderService
$order->update([
'status' => DealerOrderStatus::Confirming,
'pay_image' => $payImage,
'pay_info' => $order->getConsignorPayInfo()??null,
'pay_info' => $order->getConsignorPayInfo() ?? null,
'pay_time' => now(),
]);
}
@ -319,7 +319,7 @@ class OrderService
$lvl = $user->dealer->lvl;
//计算通过这个订单可能升级成为的身份
foreach ($rules as $rule) {
if ($totalAmount >= $rule['amount'] && $lvl->value < $rule['lvl']->value) {
if ($totalAmount >= $rule['amount'] && $lvl->value < $rule['lvl']->value) {
$lvl = $rule['lvl'];
}
}