From 7fe4b6dd8c8a6b4e30720efdc022c933720f44c3 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 10 Aug 2023 15:21:54 +0800 Subject: [PATCH] 1 --- app/Controller/CallBackController.php | 12 ++++++++++-- app/Services/ImService.php | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/Controller/CallBackController.php b/app/Controller/CallBackController.php index c6ef184..a8a3048 100644 --- a/app/Controller/CallBackController.php +++ b/app/Controller/CallBackController.php @@ -1333,7 +1333,7 @@ class CallBackController extends AbstractController // 获取检测订单数据 $params = array(); - $params['detection_no'] = "D548076621233111040"; + $params['detection_no'] = "D548154592174350336"; $order_detection = OrderDetection::getOne($params); if (empty($order_detection)){ return $this->detectionResultFailReturn("非法订单"); @@ -1456,8 +1456,16 @@ class CallBackController extends AbstractController return $this->detectionResultFailReturn("添加自动完成队列失败"); } - // 发送IM消息-检测报告结果 + // 发送im消息 $imService = new ImService(); + // 患者病例 + $imService->patientCase( + $order_inquiry, + $user_doctor['user_id'], + $order_inquiry_case['disease_desc'] + ); + + // 发送IM消息-检测报告结果 $imService->detectionTestReport( $order_detection, $user_doctor['user_id'], diff --git a/app/Services/ImService.php b/app/Services/ImService.php index 9d3439c..3a59580 100644 --- a/app/Services/ImService.php +++ b/app/Services/ImService.php @@ -746,7 +746,7 @@ class ImService extends BaseService * @param string $disease_desc * @return void */ - public function patientCase(array|object $order_inquiry, string $doctor_user_id,string $disease_desc): void + public function patientCase(array|object $order_inquiry, string $doctor_user_id,string|null $disease_desc): void { try { // 发送消息