处理链接为默认值的问题
This commit is contained in:
@@ -2,7 +2,7 @@ package userDoctorInfoResponse
|
||||
|
||||
import (
|
||||
"hospital-admin-api/api/model"
|
||||
"hospital-admin-api/config"
|
||||
"hospital-admin-api/utils"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
@@ -34,7 +34,7 @@ func UserDoctorInfoResponse(userDoctorInfo *model.UserDoctorInfo) *UserDoctorInf
|
||||
result := strings.Split(userDoctorInfo.LicenseCert, ",")
|
||||
if len(result) > 0 {
|
||||
for _, v := range result {
|
||||
v = config.C.Oss.OssCustomDomainName + v
|
||||
v = utils.AddOssDomain(v)
|
||||
licenseCert = append(licenseCert, v)
|
||||
}
|
||||
}
|
||||
@@ -45,7 +45,7 @@ func UserDoctorInfoResponse(userDoctorInfo *model.UserDoctorInfo) *UserDoctorInf
|
||||
result := strings.Split(userDoctorInfo.QualificationCert, ",")
|
||||
if len(result) > 0 {
|
||||
for _, v := range result {
|
||||
v = config.C.Oss.OssCustomDomainName + v
|
||||
v = utils.AddOssDomain(v)
|
||||
qualificationCert = append(qualificationCert, v)
|
||||
}
|
||||
}
|
||||
@@ -56,7 +56,7 @@ func UserDoctorInfoResponse(userDoctorInfo *model.UserDoctorInfo) *UserDoctorInf
|
||||
result := strings.Split(userDoctorInfo.WorkCert, ",")
|
||||
if len(result) > 0 {
|
||||
for _, v := range result {
|
||||
v = config.C.Oss.OssCustomDomainName + v
|
||||
v = utils.AddOssDomain(v)
|
||||
workCert = append(workCert, v)
|
||||
}
|
||||
}
|
||||
@@ -85,8 +85,8 @@ func UserDoctorInfoResponse(userDoctorInfo *model.UserDoctorInfo) *UserDoctorInf
|
||||
QualificationCertNum: userDoctorInfo.QualificationCertNum,
|
||||
WorkCert: workCert,
|
||||
MultiPointImages: multiPointImages,
|
||||
IdCardFront: config.C.Oss.OssCustomDomainName + "/" + userDoctorInfo.IdCardFront,
|
||||
IdCardBack: config.C.Oss.OssCustomDomainName + "/" + userDoctorInfo.IdCardBack,
|
||||
SignImage: config.C.Oss.OssCustomDomainName + "/" + userDoctorInfo.SignImage,
|
||||
IdCardFront: utils.AddOssDomain(userDoctorInfo.IdCardFront),
|
||||
IdCardBack: utils.AddOssDomain(userDoctorInfo.IdCardBack),
|
||||
SignImage: utils.AddOssDomain(userDoctorInfo.SignImage),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user