diff --git a/app/Services/UserDoctorService.php b/app/Services/UserDoctorService.php index 9bf7a59..0ad7623 100644 --- a/app/Services/UserDoctorService.php +++ b/app/Services/UserDoctorService.php @@ -1894,47 +1894,6 @@ class UserDoctorService extends BaseService return true; } - /** - * 检测是否存在对应问诊的在线医生 - * @param int|string $inquiry_type 订单类型(1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药) - * @return bool - */ - public function checkDoctorOnline(int|string $inquiry_type): bool - { - $params = array(); - $params['status'] = 1; // 状态 - $params['idcard_status'] = 1; // 实名认证状态 - $params['iden_auth_status'] = 1;// 身份认证状态 - - if ($inquiry_type == 4) { - // 问诊购药 - $params['multi_point_status'] = 1;// 医生多点执业认证状态(0:未认证 1:认证通过 2:审核中 3:认证失败) - } - - $params['is_online'] = 1;// 是否在线(0:不在线 1:在线) - - switch ($inquiry_type) { - case 1: - // 专家 - $params['is_img_expert_reception'] = 1;// 是否参加专家图文接诊(0:否 1:是) - break; - case 2: - // 快速 - $params['is_img_quick_reception'] = 1;// 是否参加快速图文接诊(0:否 1:是) - break; - case 3: - // 公益 - $params['is_img_welfare_reception'] = 1;// 是否参加公益图文问诊(0:否 1:是) - break; - - default: - throw new BusinessException(); - break; - } - - return UserDoctor::getExists($params); - } - /** * 获取当前时间N分钟前接诊中的医生 * @param string|int $minute 分钟