From 0608bb9f045a5cd8c17cee0477afb104b0d556b4 Mon Sep 17 00:00:00 2001 From: Devil Date: Fri, 27 Aug 2021 13:57:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=9C=B0=E5=9D=80=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E4=BC=98=E5=8C=96=EF=BC=8C=E5=87=8F=E5=B0=91=20sql=20?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/OrderService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/service/OrderService.php b/app/service/OrderService.php index 76a0201c3..03836dac9 100755 --- a/app/service/OrderService.php +++ b/app/service/OrderService.php @@ -1289,7 +1289,7 @@ class OrderService $v['client_type_name'] = isset($common_platform_type[$v['client_type']]) ? $common_platform_type[$v['client_type']]['name'] : ''; // 状态 - $v['status_name'] = ($v['order_model'] == 2 && $v['status'] == 2) ? '待取货' : $order_status_list[$v['status']]['name']; + $v['status_name'] = ($v['order_model'] == 2 && $v['status'] == 2) ? '待取货' : (array_key_exists($v['status'], $order_status_list) ? $order_status_list[$v['status']]['name'] : '未知'); // 支付状态 $v['pay_status_name'] = $order_pay_status[$v['pay_status']]['name'];