From 11ddfe89b2090dec62ce1a0f033aea959110bca3 Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 28 Sep 2022 11:37:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/user_invitation.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/routers/repo/user_invitation.go b/routers/repo/user_invitation.go index 686d490d2..75d416346 100644 --- a/routers/repo/user_invitation.go +++ b/routers/repo/user_invitation.go @@ -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