im消息推送
This commit is contained in:
parent
962ed9b7b3
commit
abde7c0aa4
@ -1698,7 +1698,6 @@ class CallBackController extends AbstractController
|
||||
$time_diff = 60;
|
||||
}
|
||||
|
||||
dump($time_diff);
|
||||
// 计算时间并重新加入队列
|
||||
$queue_data = array();
|
||||
$queue_data['detection_no'] = $order_detection['detection_no'];
|
||||
@ -1824,6 +1823,12 @@ class CallBackController extends AbstractController
|
||||
return $this->detectionResultFailReturn("添加自动完成队列失败");
|
||||
}
|
||||
|
||||
$imService->patientCase(
|
||||
$order_inquiry,
|
||||
$user_doctor['user_id'],
|
||||
$order_inquiry_case['disease_desc']
|
||||
);
|
||||
|
||||
// 发送IM消息-检测报告结果
|
||||
$imService->detectionTestReport(
|
||||
$order_detection,
|
||||
|
||||
@ -535,8 +535,6 @@ class DetectionService extends BaseService
|
||||
|
||||
$order_detection_id = $this->request->route("order_detection_id");
|
||||
|
||||
$request_params = $this->request->all();
|
||||
|
||||
// 定义返回数据
|
||||
/*
|
||||
* status解释
|
||||
|
||||
@ -747,7 +747,7 @@ class ImService extends BaseService
|
||||
* @param string $disease_desc
|
||||
* @return void
|
||||
*/
|
||||
public function patientCase(array|object $order_inquiry, string $doctor_user_id,string|null $disease_desc): void
|
||||
public function patientCase(array|object $order_inquiry, string $doctor_user_id,string|null $disease_desc = ""): void
|
||||
{
|
||||
try {
|
||||
// 发送消息
|
||||
|
||||
@ -876,6 +876,7 @@ class InquiryService extends BaseService
|
||||
if (empty($user_info)) {
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "操作失败");
|
||||
}
|
||||
|
||||
// 获取问诊订单数据
|
||||
$params = array();
|
||||
$params['order_inquiry_id'] = $order_inquiry_id;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user