From 14b3aad40120ab1c707d132fb788a2eac918c71d Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Fri, 21 Jun 2024 11:42:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=81=A5=E5=BA=B7=E5=8C=85?= =?UTF-8?q?=20=E5=A4=9A=E7=82=B9=E6=89=A7=E4=B8=9A=E7=9A=84=E5=88=A4?= =?UTF-8?q?=E6=96=AD1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/service/doctorConfigHealthPackage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/service/doctorConfigHealthPackage.go b/api/service/doctorConfigHealthPackage.go index b135da8..bd6aedd 100644 --- a/api/service/doctorConfigHealthPackage.go +++ b/api/service/doctorConfigHealthPackage.go @@ -117,8 +117,8 @@ func (r *DoctorConfigHealthPackageService) PutDoctorHealth(healthPackageId int64 maps["inquiry_mode"] = 1 doctorInquiryConfigDao := dao.DoctorInquiryConfigDao{} - _, err := doctorInquiryConfigDao.GetDoctorInquiryConfig(maps) - if err != nil && req.IsEnable == 1 { + doctorInquiryConfig, _ := doctorInquiryConfigDao.GetDoctorInquiryConfig(maps) + if doctorInquiryConfig == nil && req.IsEnable == 1 { return false, errors.New("本服务需设置图文问诊的价格,才可开启") } }