diff --git a/app/Services/UserDoctorService.php b/app/Services/UserDoctorService.php index 8e3d7a4..8353d02 100644 --- a/app/Services/UserDoctorService.php +++ b/app/Services/UserDoctorService.php @@ -2463,16 +2463,14 @@ class UserDoctorService extends BaseService $params = array(); $params['doctor_id'] = $doctor_id; $doctor_config_difficult_consultation = DoctorConfigDifficultConsultation::getOne($params); - if (empty($doctor_config_difficult_consultation)){ - return fail(); + if (!empty($doctor_config_difficult_consultation)){ + $value['times_number'] = $doctor_config_difficult_consultation['service_rounds']; // 服务回合数(0表示不限次) + $value['duration'] = $doctor_config_difficult_consultation['service_period']; // 服务周期(天,不存在0的情况) + $value['service_content'] = $doctor_config_difficult_consultation['service_content'];// 服务内容 + $value['service_process'] = $doctor_config_difficult_consultation['service_process'];// 服务流程 + + unset($doctor_config_difficult_consultation); } - - $value['times_number'] = $doctor_config_difficult_consultation['service_rounds']; // 服务回合数(0表示不限次) - $value['duration'] = $doctor_config_difficult_consultation['service_period']; // 服务周期(天,不存在0的情况) - $value['service_content'] = $doctor_config_difficult_consultation['service_content'];// 服务内容 - $value['service_process'] = $doctor_config_difficult_consultation['service_process'];// 服务流程 - - unset($doctor_config_difficult_consultation); }else{ // 获取系统问诊配置 $fields = [