修改 处理科室问题-更新云证书

This commit is contained in:
wucongxing 2023-12-04 13:49:19 +08:00
parent 2a63eb3431
commit 9614b20a9a
2 changed files with 12 additions and 12 deletions

View File

@ -602,18 +602,18 @@ func (r *UserDoctorService) PutUserDoctor(doctorId int64, req requests.PutUserDo
}
}
// 处理科室问题-更新云证书
if userDoctor.DepartmentCustomId != departmentCustomId {
if userDoctor.IdenAuthStatus == 1 {
// 更新云证书
userCaCertService := UserCaCertService{}
_, err = userCaCertService.EditUserCloudCert(tx, userDoctor.UserId)
if err != nil {
tx.Rollback()
return false, errors.New(err.Error())
}
}
}
// // 处理科室问题-更新云证书-暂时不更新更新时调用EditUserCloudCert方法内部查询的数据还是更新前的数据
// if userDoctor.DepartmentCustomId != departmentCustomId {
// if userDoctor.IdenAuthStatus == 1 {
// // 更新云证书
// userCaCertService := UserCaCertService{}
// _, err = userCaCertService.EditUserCloudCert(tx, userDoctor.UserId)
// if err != nil {
// tx.Rollback()
// return false, errors.New(err.Error())
// }
// }
// }
// 判断头像是否修改同步修改im
if userDoctor.Avatar != avatar {

Binary file not shown.