From 448180598d321ef4c0f159b59355fac22e9faf6c Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Tue, 7 May 2024 11:39:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A8=E9=80=81=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/MessagePush.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/Services/MessagePush.php b/app/Services/MessagePush.php index 4e7ee5b..ec0f9a4 100644 --- a/app/Services/MessagePush.php +++ b/app/Services/MessagePush.php @@ -3185,8 +3185,10 @@ class MessagePush extends BaseService if ($this->order_service_package['order_service_type'] == 1){ $inquiry_mode = 8; + $notice_content = "您购买的{$order_type}服务,{$user_doctor['user_name']}医生已接受,服务包含:({$monthly_frequency}次问诊/月;30盒肝爽颗粒),服务有效期:{$start_time}~{$finish_time},每次问诊不限制沟通回合数,您可以点击【问诊详情】进行交流。"; }else{ $inquiry_mode = 9; + $notice_content = "您购买的{$order_type}服务,{$user_doctor['user_name']}医生已接受,服务包含:({$monthly_frequency}次问诊/月),服务有效期:{$start_time}~{$finish_time},每次问诊不限制沟通回合数,您可以点击【问诊详情】进行交流。"; } // 站内 @@ -3198,7 +3200,7 @@ class MessagePush extends BaseService $data['from_name'] = "肝胆小秘书"; $data['notice_brief_title'] = "您购买的{$order_type}服务,医生已接受,点击查看详情。"; $data['notice_title'] = "您购买的{$order_type}服务,医生已接受,点击查看详情。"; - $data['notice_content'] = "您购买的{$order_type}服务,{$user_doctor['user_name']}医生已接受,服务包含:({$monthly_frequency}次问诊/月;30盒肝爽颗粒),服务有效期:{$start_time}~{$finish_time},每次问诊不限制沟通回合数,您可以点击【问诊详情】进行交流。"; + $data['notice_content'] = $notice_content; $data['link_type'] = 15;// 聊天详情页 $link_params = array(); @@ -3297,6 +3299,10 @@ class MessagePush extends BaseService // 获取服务包内某一药品的剩余数量 $remaining_quantity = $OrderServicePackageService->getOrderServiceProductCanUseQuantity($this->order_service_package['order_service_id'],$health_package_product['product_id'],$health_package_product['quantity']); } + + $notice_content = "您使用{$order_type}服务中问诊,{$user_doctor['user_name']}医生已接诊,服务剩余:({$remaining_inquiry_count}次问诊/月;{$remaining_quantity}盒肝爽颗粒),您可以点击【问诊详情】进行交流。"; + }else{ + $notice_content = "您使用{$order_type}服务中问诊,{$user_doctor['user_name']}医生已接诊,服务剩余:({$remaining_inquiry_count}次问诊/月),您可以点击【问诊详情】进行交流。"; } // 站内 @@ -3308,8 +3314,7 @@ class MessagePush extends BaseService $data['from_name'] = "肝胆小秘书"; $data['notice_brief_title'] = "您使用{$order_type}服务中问诊,医生已接诊,点击查看详情。"; $data['notice_title'] = "您使用{$order_type}服务中问诊,医生已接诊,点击查看详情。"; - $data['notice_content'] = "您使用{$order_type}服务中问诊,{$user_doctor['user_name']}医生已接诊,服务剩余:({$remaining_inquiry_count}次问诊/月;{$remaining_quantity}盒肝爽颗粒),您可以点击【问诊详情】进行交流。 -"; + $data['notice_content'] = $notice_content; $data['link_type'] = 1; $link_params = array();