From 798924243a7473c953dd61005986b2900131fda2 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 27 Apr 2023 11:35:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=A9=E6=B5=81=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E4=BF=A1=E6=81=AF=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Command/getPrescriptionOrderStatusCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Command/getPrescriptionOrderStatusCommand.php b/app/Command/getPrescriptionOrderStatusCommand.php index a14388e..9e43de2 100644 --- a/app/Command/getPrescriptionOrderStatusCommand.php +++ b/app/Command/getPrescriptionOrderStatusCommand.php @@ -136,6 +136,8 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand // 检测物流编号是否已经存在并订阅 if (empty($order_prescription['logistics_no']) || $order_prescription['logistics_no'] != $result['deliveryId']){ + $this->line("开始推送消息"); + // 订阅快递推送 $Kuaidi = new Kuaidi(); $Kuaidi->subscribe($result['deliveryId'],$logistics_company_code,$item['consignee_tel']); @@ -152,6 +154,8 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand // 患者-药品已发货-订阅失败发送短信 $MessagePush = new MessagePush($user_patient['user_id']); $MessagePush->productDelivery($item['order_product_id']); + + $this->line("推送消息成功"); }catch (\Exception $e){ $this->line("推送消息错误:" . $e->getMessage()); }