diff --git a/app/Services/DoctorAuthService.php b/app/Services/DoctorAuthService.php index fccce8f..e36c229 100644 --- a/app/Services/DoctorAuthService.php +++ b/app/Services/DoctorAuthService.php @@ -364,7 +364,7 @@ class DoctorAuthService extends BaseService $params = array(); $params['hospital_id'] = $request_params['hospital_id']; $hospital = Hospital::getOne($params); - if (!empty($hospital)) { + if (empty($hospital)) { return fail(HttpEnumCode::HTTP_ERROR, "医院选择错误"); }