From 0d3e62305d5667f1b65ad67c4596c6e35f2a1e4e Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Fri, 8 Apr 2022 16:45:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=8B=E5=8D=95=E7=A0=8D?= =?UTF-8?q?=E4=BB=B7=E4=BC=98=E6=83=A0=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/OrderService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/OrderService.php b/app/Services/OrderService.php index a5fd887a..7edea3a3 100644 --- a/app/Services/OrderService.php +++ b/app/Services/OrderService.php @@ -226,7 +226,7 @@ class OrderService 'consignee_zone' => $shippingAddress->zone, 'consignee_address' => $shippingAddress->address, //砍价订单金额 - 'bargain_amount'=>$bargainOrder?->bargain_price, + 'bargain_amount'=>$bargainOrder?->bargain_price ?? 0, ]; return $user->orders()->create($attrs);