From a407335bed4105ed86ea7cf56efd3b101788dd21 Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Thu, 10 Feb 2022 15:50:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=89=93=E6=AC=BE=E5=87=AD?= =?UTF-8?q?=E8=AF=81=E4=B8=8A=E4=BC=A0=E6=97=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Dealer/OrderService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Services/Dealer/OrderService.php b/app/Services/Dealer/OrderService.php index f6bb49b4..28e68407 100644 --- a/app/Services/Dealer/OrderService.php +++ b/app/Services/Dealer/OrderService.php @@ -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']; } }