修复收货人手机为空异常

This commit is contained in:
yaooo 2023-08-12 15:07:24 +08:00
parent af562ee2b7
commit 3c51e97797

View File

@ -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;