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()); }