From ad12890673a7a6be0438ad13b88d29a50d60b7dc Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Sat, 11 May 2024 14:54:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=A4=84=E6=96=B9=E5=B9=B3=E5=8F=B0=E8=AE=A2=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Command/getPrescriptionOrderStatusCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Command/getPrescriptionOrderStatusCommand.php b/app/Command/getPrescriptionOrderStatusCommand.php index 04e12b8..60d5c9f 100644 --- a/app/Command/getPrescriptionOrderStatusCommand.php +++ b/app/Command/getPrescriptionOrderStatusCommand.php @@ -137,15 +137,15 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand } // 检测物流编号是否已经存在并订阅 - if (empty($item['logistics_no']) || $item['logistics_no'] != $result['deliveryId']){ + if (empty($order_product['logistics_no']) || $order_product['logistics_no'] != $result['deliveryId']){ $this->line("开始订阅快递推送"); // 订阅快递推送 $Kuaidi = new Kuaidi(); - $Kuaidi->subscribe($result['deliveryId'],$logistics_company_code,$item['consignee_tel']); + $Kuaidi->subscribe($result['deliveryId'],$logistics_company_code,$order_product['consignee_tel']); // 修改成功时药品订单数据 - $this->savePreSuccessOrderStatus($item,$result['deliveryId'],$logistics_company_code,$result['deliveryTime']); + $this->savePreSuccessOrderStatus($order_product,$result['deliveryId'],$logistics_company_code,$result['deliveryTime']); try { // 获取患者数据 @@ -158,7 +158,7 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand // 患者-药品已发货-订阅失败发送短信 $MessagePush = new MessagePush($user_patient['user_id']); - $MessagePush->productDelivery($item['order_product_id']); + $MessagePush->productDelivery($order_product['order_product_id']); $this->line("推送消息成功"); }catch (\Exception $e){