From 5fe99b1c24f32b7e511f928a5bec5dffec2e9a2b Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Wed, 22 Feb 2023 14:09:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E5=A2=9E=E8=BA=AB?= =?UTF-8?q?=E4=BB=BD=E8=AE=A4=E8=AF=81=EF=BC=8C=E9=87=8D=E5=A4=8D=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/DoctorAuthService.php | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/app/Services/DoctorAuthService.php b/app/Services/DoctorAuthService.php index cb6ee3a..fccce8f 100644 --- a/app/Services/DoctorAuthService.php +++ b/app/Services/DoctorAuthService.php @@ -447,6 +447,39 @@ class DoctorAuthService extends BaseService $expertise_is_change = true; } + // 验证认证失败场景 + if ($doctor['iden_auth_status'] == 3){ + // 获取认证失败字段 + $params = array(); + $params['doctor_id'] = $user_info['client_user_id']; + $doctor_iden_fails = DoctorIdenFail::getList($params); + if (!empty($doctor_iden_fails)){ + foreach ($doctor_iden_fails as $doctor_iden_fail){ + // 科室电话 + if ($doctor_iden_fail['field_name'] == "department_custom_mobile") { + if ($doctor['department_custom_mobile'] == $request_params['department_custom_mobile']){ + return fail(HttpEnumCode::HTTP_ERROR,"科室电话" . $doctor_iden_fail['fail_reason']); + } + } + + // 医生简介 + if ($doctor_iden_fail['field_name'] == "brief_introduction") { + if ($doctor['brief_introduction'] == $request_params['brief_introduction']){ + return fail(HttpEnumCode::HTTP_ERROR,"医生简介" . $doctor_iden_fail['fail_reason']); + } + } + + // 擅长领域 + if ($doctor_iden_fail['field_name'] == "be_good_at") { + if ($doctor['be_good_at'] == $request_params['be_good_at']){ + return fail(HttpEnumCode::HTTP_ERROR,"擅长领域" . $doctor_iden_fail['fail_reason']); + } + } + } + } + + } + Db::beginTransaction(); try { // 专长有改动