修改物流发货信息推送

This commit is contained in:
wucongxing 2023-04-27 11:35:00 +08:00
parent 57816f58b4
commit 798924243a

View File

@ -136,6 +136,8 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand
// 检测物流编号是否已经存在并订阅 // 检测物流编号是否已经存在并订阅
if (empty($order_prescription['logistics_no']) || $order_prescription['logistics_no'] != $result['deliveryId']){ if (empty($order_prescription['logistics_no']) || $order_prescription['logistics_no'] != $result['deliveryId']){
$this->line("开始推送消息");
// 订阅快递推送 // 订阅快递推送
$Kuaidi = new Kuaidi(); $Kuaidi = new Kuaidi();
$Kuaidi->subscribe($result['deliveryId'],$logistics_company_code,$item['consignee_tel']); $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 = new MessagePush($user_patient['user_id']);
$MessagePush->productDelivery($item['order_product_id']); $MessagePush->productDelivery($item['order_product_id']);
$this->line("推送消息成功");
}catch (\Exception $e){ }catch (\Exception $e){
$this->line("推送消息错误:" . $e->getMessage()); $this->line("推送消息错误:" . $e->getMessage());
} }