diff --git a/app/Controller/CallBackController.php b/app/Controller/CallBackController.php index 221c6ed..a80db9e 100644 --- a/app/Controller/CallBackController.php +++ b/app/Controller/CallBackController.php @@ -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, diff --git a/app/Services/DetectionService.php b/app/Services/DetectionService.php index 60db330..1d98b3f 100644 --- a/app/Services/DetectionService.php +++ b/app/Services/DetectionService.php @@ -535,8 +535,6 @@ class DetectionService extends BaseService $order_detection_id = $this->request->route("order_detection_id"); - $request_params = $this->request->all(); - // 定义返回数据 /* * status解释 diff --git a/app/Services/ImService.php b/app/Services/ImService.php index c6b579e..65f9a0d 100644 --- a/app/Services/ImService.php +++ b/app/Services/ImService.php @@ -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 { // 发送消息 diff --git a/app/Services/InquiryService.php b/app/Services/InquiryService.php index 92ca6c6..f19821c 100644 --- a/app/Services/InquiryService.php +++ b/app/Services/InquiryService.php @@ -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;