From 3c51e97797d65edb52e313fed83360998913e2e8 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Sat, 12 Aug 2023 15:07:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=94=B6=E8=B4=A7=E4=BA=BA?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E4=B8=BA=E7=A9=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/listener/SendGoodsCode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/listener/SendGoodsCode.php b/app/listener/SendGoodsCode.php index 60938bbe..6be854c3 100644 --- a/app/listener/SendGoodsCode.php +++ b/app/listener/SendGoodsCode.php @@ -51,7 +51,7 @@ class SendGoodsCode $phone = ''; if (!empty($data) && is_string($data)) { $logisticsInfo = json_decode($data, true); - $phone = $logisticsInfo['data']['phone']; + $phone = $logisticsInfo['data']['phone'] ?? ''; Log::info("物流联系信息" . json_encode($logisticsInfo)); } return $phone;