12
This commit is contained in:
parent
6ca0a5ff52
commit
b6f4d04b46
@ -764,6 +764,11 @@ func (r *UserCaCertService) GetHospitalCloudCert() (g *dto.UserCaCertDto, err er
|
|||||||
maps["ca_pin"] = userId
|
maps["ca_pin"] = userId
|
||||||
maps["type"] = 2
|
maps["type"] = 2
|
||||||
userCaCert, _ := userCaCertDao.GetUserCaCert(maps)
|
userCaCert, _ := userCaCertDao.GetUserCaCert(maps)
|
||||||
|
if userCaCert == nil {
|
||||||
|
// 如果找不到证书,可以返回 nil,或者返回一个特定的业务 error (如: errors.New("暂无医院证书"))
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
g = dto.GetUserCaCertDto(userCaCert)
|
g = dto.GetUserCaCertDto(userCaCert)
|
||||||
|
|
||||||
return g, nil
|
return g, nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user