Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/2977/head
zouap 2 years ago
parent
commit
2cd6a64f81
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      routers/user/Invitation.go

+ 5
- 1
routers/user/Invitation.go View File

@@ -47,7 +47,11 @@ func GetInvitaionCode(ctx *context.Context) {
for _, record := range re {
tmpUser, err := models.GetUserByID(record.UserID)
if err == nil {
record.Avatar = strings.TrimRight(setting.AppSubURL, "/") + "/user/avatar/" + tmpUser.Name + "/" + strconv.Itoa(-1)
if tmpUser.Avatar != "" {
record.Avatar = tmpUser.Avatar
} else {
record.Avatar = strings.TrimRight(setting.AppSubURL, "/") + "/user/avatar/" + tmpUser.Name + "/" + strconv.Itoa(-1)
}
}
}
resultJsonMap["invitation_users"] = re


Loading…
Cancel
Save