This commit is contained in:
wucongxing8150 2024-05-08 17:46:22 +08:00
parent 0a169c4ce1
commit af741e78b4

View File

@ -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 = [