1
This commit is contained in:
parent
38f0ed6bc7
commit
9a8641a12b
@ -669,17 +669,7 @@ func (r *UserDoctorService) PutUserDoctor(doctorId int64, req requests.PutUserDo
|
||||
// 处理签名图片-如果更改,查看是否已添加签章配置,会进行删除
|
||||
if req.SignImage != "" {
|
||||
signImage := utils.RemoveOssDomain(req.SignImage)
|
||||
if signImage != userDoctorInfo.SignImage {
|
||||
// 检测是否存在云证书
|
||||
userCaCertDao := dao.UserCaCertDao{}
|
||||
userCaCerts, err := userCaCertDao.GetUserCaCertListByUserId(userDoctor.UserId)
|
||||
if err != nil {
|
||||
tx.Rollback()
|
||||
return false, errors.New("修改失败")
|
||||
}
|
||||
|
||||
if len(userCaCerts) > 0 {
|
||||
userCaCert := userCaCerts[0]
|
||||
if signImage != userDoctorInfo.SignImage && userCaCert != nil {
|
||||
// 检测是否已经添加签章配置
|
||||
if userCaCert.IsSignConfig == 1 {
|
||||
// 修改签章配置为未添加
|
||||
@ -705,7 +695,6 @@ func (r *UserDoctorService) PutUserDoctor(doctorId int64, req requests.PutUserDo
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tx.Commit()
|
||||
return true, nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user