新增问诊结束评价通知
This commit is contained in:
parent
4701bb2bce
commit
5170f8f125
@ -589,4 +589,37 @@ class ImService extends BaseService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 问诊结束评价通知
|
||||||
|
* @param array|object $order_inquiry
|
||||||
|
* @param string $doctor_user_id
|
||||||
|
* @param string $patient_user_id
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function inquiryEndEvaluation(array|object $order_inquiry, string $doctor_user_id, string $patient_user_id): void
|
||||||
|
{
|
||||||
|
// 发送消息
|
||||||
|
$cloud_custom_data = array();
|
||||||
|
$cloud_custom_data['order_inquiry_id'] = $order_inquiry['order_inquiry_id'];
|
||||||
|
$cloud_custom_data['is_system'] = 1;
|
||||||
|
$cloud_custom_data['inquiry_type'] = $order_inquiry['inquiry_type'];
|
||||||
|
$cloud_custom_data['message_rounds'] = 0;
|
||||||
|
$cloud_custom_data['patient_family_data']['patient_name'] = $order_inquiry['patient_name'];
|
||||||
|
$cloud_custom_data['patient_family_data']['patient_sex'] = $order_inquiry['patient_sex'];
|
||||||
|
$cloud_custom_data['patient_family_data']['patient_age'] = $order_inquiry['patient_age'];
|
||||||
|
|
||||||
|
// 消息内容 - 患者-医生
|
||||||
|
$message_content_data = array();
|
||||||
|
$message_content_data['message_type'] = 2; // 订单结束评价弹出
|
||||||
|
$message_content_data['title'] = "评价";
|
||||||
|
$message_content_data['desc'] = "";
|
||||||
|
$message_content_data['data']['order_inquiry_id'] = $order_inquiry['order_inquiry_id'];
|
||||||
|
|
||||||
|
$message_content = [
|
||||||
|
'Data' => json_encode($message_content_data, JSON_UNESCAPED_UNICODE),
|
||||||
|
];
|
||||||
|
|
||||||
|
$this->sendMessage($doctor_user_id, $patient_user_id, $message_content, "TIMCustomElem", $cloud_custom_data);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -1713,6 +1713,9 @@ class UserDoctorService extends BaseService
|
|||||||
$imService = new ImService();
|
$imService = new ImService();
|
||||||
$imService->inquiryEnd($order_inquiry,$user_info['user_id'],$order_inquiry['user_id']);
|
$imService->inquiryEnd($order_inquiry,$user_info['user_id'],$order_inquiry['user_id']);
|
||||||
|
|
||||||
|
// 发送IM消息-问诊结束评价通知
|
||||||
|
$imService->inquiryEndEvaluation($order_inquiry,$user_info['user_id'],$order_inquiry['user_id']);
|
||||||
|
|
||||||
// 发送站内消息-医生有新问诊
|
// 发送站内消息-医生有新问诊
|
||||||
$MessagePush = new MessagePush($user_info['user_id'],$order_inquiry['order_inquiry_id']);
|
$MessagePush = new MessagePush($user_info['user_id'],$order_inquiry['order_inquiry_id']);
|
||||||
$MessagePush->finishInquiryToDoctor();
|
$MessagePush->finishInquiryToDoctor();
|
||||||
|
|||||||
11
extend/RegulatoryPlatform/regulatoryPlatform.php
Normal file
11
extend/RegulatoryPlatform/regulatoryPlatform.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Extend\RegulatoryPlatform;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 四川省互联网医疗服务监管平台
|
||||||
|
*/
|
||||||
|
class regulatoryPlatform
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user