Browse Source

提交代码。

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

+ 2
- 3
routers/repo/user_invitation.go View File

@@ -378,13 +378,13 @@ func queryData(ctx *context.Context, startTime time.Time, endTime time.Time) {
log.Info("writer exel error." + err.Error())
}
} else {
result := make([]models.Invitation, 0)
result := make([]*models.Invitation, 0)
userIds := make([]int64, 0)
end := len(invitaionNumList) - 1
for start := (page - 1) * pageSize; start <= end; start++ {
invi := invitaionNumList[start]
//todo name phone,createunix
result = append(result, invi)
result = append(result, &invi)
userIds = append(userIds, invi.SrcUserID)
if len(result) == pageSize {
break
@@ -401,7 +401,6 @@ func queryData(ctx *context.Context, startTime time.Time, endTime time.Time) {
}
}
if invi.SrcUserID == tmpUser.ID {
log.Info("find name........")
invi.Name = tmpUser.Name
invi.Phone = tmpUser.PhoneNumber
invi.CreatedUnix = tmpUser.CreatedUnix


Loading…
Cancel
Save