Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.9.2^2
zouap 3 years ago
parent
commit
a3f338413b
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      models/user_invitation.go
  2. +1
    -0
      routers/user/Invitation.go

+ 1
- 0
models/user_invitation.go View File

@@ -14,6 +14,7 @@ type Invitation struct {
UserID int64 `xorm:"NOT NULL DEFAULT 0"`
Phone string `xorm:"INDEX"`
Avatar string `xorm:"-"`
IsActive bool `xorm:"-"`
CreatedUnix timeutil.TimeStamp `xorm:"created"`
}



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

@@ -52,6 +52,7 @@ func GetInvitaionCode(ctx *context.Context) {
} else {
record.Avatar = strings.TrimRight(setting.AppSubURL, "/") + "/user/avatar/" + tmpUser.Name + "/" + strconv.Itoa(-1)
}
record.IsActive = tmpUser.IsActive
}
}
resultJsonMap["invitation_users"] = re


Loading…
Cancel
Save