区别诊所和药店

This commit is contained in:
2025-10-22 16:49:14 +08:00
parent 3083214b01
commit 61042d905b

View File

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