From abde7c0aa4acb270f117e16607fe96b591b1dc08 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Tue, 29 Aug 2023 11:03:51 +0800 Subject: [PATCH] =?UTF-8?q?im=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/CallBackController.php | 7 ++++++- app/Services/DetectionService.php | 2 -- app/Services/ImService.php | 2 +- app/Services/InquiryService.php | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) 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;