From 61042d905b1734ddbf417e87f403a75d4ade5440 Mon Sep 17 00:00:00 2001 From: lq Date: Wed, 22 Oct 2025 16:49:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=88=AB=E8=AF=8A=E6=89=80=E5=92=8C?= =?UTF-8?q?=E8=8D=AF=E5=BA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- member/models/forms/RegisterForm.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/member/models/forms/RegisterForm.php b/member/models/forms/RegisterForm.php index 67fa32d..0bd9aaf 100644 --- a/member/models/forms/RegisterForm.php +++ b/member/models/forms/RegisterForm.php @@ -61,13 +61,17 @@ class RegisterForm extends BaseModel 'store_id'=>\Yii::$app->store, 'su_id'=>$this->service_user_id ])->one(); - if (!$StoreDoctor) throw new Exception('门店没有该医生'); + if (!$StoreDoctor) { + if ($this->service_user_id !== 39) { + throw new Exception('门店没有该医生'); + } + } $ServiceUser=ServiceUser::find()->where([ 'id'=>$this->service_user_id, 'is_delete'=>0 ])->one(); - if (!$StoreDoctor) throw new Exception('该医生不存在'); + if (!$ServiceUser) throw new Exception('该医生不存在'); if ($ServiceUser->docService->register_status==0) throw new Exception('该医生没开通挂号服务'); $is_doctorPatient=DoctorPatient::find()->where([