This commit is contained in:
2023-10-27 14:32:41 +08:00
parent 6438942e18
commit cb7807801e
4 changed files with 165 additions and 11 deletions
+2 -3
View File
@@ -1434,8 +1434,8 @@ func (r *UserDoctorService) PutMulti(doctorId int64, req requests.PutMulti) (boo
}
}()
// 云证书处理
if req.MultiPointStatus == 1 && config.C.Env == "prod" {
// 云证书处理-此处去掉了环境判断
if req.MultiPointStatus == 1 {
userCaCertService := UserCaCertService{}
// 检测是否存在云证书
@@ -1444,7 +1444,6 @@ func (r *UserDoctorService) PutMulti(doctorId int64, req requests.PutMulti) (boo
maps := make(map[string]interface{})
maps["user_id"] = userDoctor.UserId
maps["type"] = 2
maps["is_latest"] = 1
userCaCert, _ := userCaCertDao.GetUserCaCert(maps)
if userCaCert == nil {
// 申请云证书