From 70f9c47e0ca59007d4c5d669eebae7fe51878430 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Wed, 25 Oct 2023 13:10:22 +0800 Subject: [PATCH] 1 --- api/service/InquiryConfig.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/service/InquiryConfig.go b/api/service/InquiryConfig.go index 9f671a1..aad023e 100644 --- a/api/service/InquiryConfig.go +++ b/api/service/InquiryConfig.go @@ -373,6 +373,12 @@ func (r *DoctorInquiryConfigService) AddDoctorInquiryConfig(req requests.AddDoct return false, errors.New("该医生未进行绑定结算银行卡") } + if req.InquiryType == 4 && req.InquiryMode == 1 && req.IsEnable == 1 { + if userDoctor.MultiPointStatus != 1 { + return false, errors.New("该医生未进行多点认证") + } + } + // 获取系统问诊配置 systemInquiryConfigDao := dao.SystemInquiryConfigDao{}