From 0d5b8e8631c2342f1b1d7b97ed1c571434626269 Mon Sep 17 00:00:00 2001 From: lqmac Date: Thu, 29 Feb 2024 00:44:33 +0800 Subject: [PATCH] 1 --- app/api/model/dealer/Order.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/model/dealer/Order.php b/app/api/model/dealer/Order.php index 1e9a5ca5..43ebd092 100644 --- a/app/api/model/dealer/Order.php +++ b/app/api/model/dealer/Order.php @@ -75,9 +75,9 @@ class Order extends DealerOrderModel $item['second_user_id'] => $item['second_money'], $item['third_user_id'] => $item['third_money'], ]; - $item['goods'] = $order_goods['goods']; + $item['goods'] = $order_goods['goods'] ?? []; $item['address_name'] =$address['name']; - $item['order_no'] = $item['order']['order_no']; + $item['order_no'] = $item['order']['order_no'] ?? ""; $item['my_money'] = $money[$userId]; } return $list;