dengbiao 3 days ago
parent
commit
848bbab6ee
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      app/hdl/hdl_user.go
  2. +1
    -0
      app/svc/svc_common.go

+ 1
- 1
app/hdl/hdl_user.go View File

@@ -113,7 +113,7 @@ func InviteCodeUserInfo(c *gin.Context) {
user = svc.UserImg(user)
res := md.InviteCodeUserInfoResp{
Nickname: nickname,
HeadImg: user.Avatar,
HeadImg: svc.GetOssUrl(user.Avatar),
}
e.OutSuc(c, res, nil)
return


+ 1
- 0
app/svc/svc_common.go View File

@@ -22,6 +22,7 @@ func UserImg(user *model.User) *model.User {
if user.Avatar == "" {
user.Avatar = GetSysCfgStr("default_avatar")
}
user.Avatar = GetOssUrl(user.Avatar)
return user
}
func GetOssDomain() string {


Loading…
Cancel
Save