This commit is contained in:
2023-03-27 10:58:18 +08:00
parent 806a9e02c5
commit 426988d8d3
7 changed files with 54 additions and 7 deletions
+1
View File
@@ -185,6 +185,7 @@ class DoctorInquiryService extends BaseService
if ($inquiry_type == 1) {
// 专家
$data['is_img_expert_reception'] = $is_open;
$data['is_online'] = $is_open;
} elseif ($inquiry_type == 2) {
// 快速
$data['is_img_quick_reception'] = $is_open;
+1 -1
View File
@@ -647,7 +647,7 @@ class InquiryService extends BaseService
$result['duration'] = $duration;
$result['follow'] = $follow;
$result['is_evaluation'] = $is_evaluation;
$result['reception_time'] = $order_inquiry['reception_time'] ?? ""; // 接诊时间
$result['reception_time'] = $order_inquiry['reception_time'] ?: null; // 接诊时间
return success($result);
}
+28
View File
@@ -132,4 +132,32 @@ class MessageNoticeService extends BaseService
return success($message_notice->toArray());
}
/**
* 消息已读
* @return array
*/
public function putMessageReadId(): array
{
$user_info = $this->request->getAttribute("userInfo") ?? [];
$notice_id = $this->request->route('notice_id');
$params = array();
$params['notice_id'] = $notice_id;
$params['user_id'] = $user_info['user_id'];
$message_notice = MessageNotice::getExists($params);
if (empty($message_notice)){
return success();
}
$data = array();
$data['read_status'] = 1;
$params = array();
$params['notice_id'] = $notice_id;
MessageNotice::edit($params,$data);
return success();
}
}
-4
View File
@@ -413,10 +413,6 @@ class PatientDoctorService extends BaseService
return fail();
}
if ($user_doctor['is_img_expert_reception'] != 1) {
return fail(HttpEnumCode::HTTP_ERROR, "医生未开通在线问诊服务");
}
// 检测当前医生是否和患者存在未完成问诊订单
$InquiryService = new InquiryService();
$order_inquiry = $InquiryService->checkPatientDoctorProgressInquiry($user_info['client_user_id'],$doctor_id);