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 * @return void
*/ */
public function payOrder(DealerOrder $order, string $payImage) public function payOrder(DealerOrder $order, ?string $payImage)
{ {
if (!$order->isPendinged()) { if (!$order->isPendinged()) {
throw new BizException('订单状态异常,请刷新后再试'); throw new BizException('订单状态异常,请刷新后再试');
@ -144,7 +144,7 @@ class OrderService
$order->update([ $order->update([
'status' => DealerOrderStatus::Confirming, 'status' => DealerOrderStatus::Confirming,
'pay_image' => $payImage, 'pay_image' => $payImage,
'pay_info' => $order->getConsignorPayInfo()??null, 'pay_info' => $order->getConsignorPayInfo() ?? null,
'pay_time' => now(), 'pay_time' => now(),
]); ]);
} }