From 49e24592f47898d8ee80486696b6097161a056ee Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 28 Sep 2022 11:54:02 +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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routers/repo/user_invitation.go b/routers/repo/user_invitation.go index c5a5195a8..79cb3b48d 100644 --- a/routers/repo/user_invitation.go +++ b/routers/repo/user_invitation.go @@ -325,7 +325,7 @@ func queryData(ctx *context.Context, startTime time.Time, endTime time.Time) { log.Info("len(allUserIds)=" + fmt.Sprint(len(allUserIds))) for i := 0; i < len(allUserIds); i += 100 { if end >= len(allUserIds) { - end = len(allUserIds) - 1 + end = len(allUserIds) } log.Info("i=" + fmt.Sprint(i) + " end=" + fmt.Sprint(end)) if i == end { @@ -337,6 +337,8 @@ func queryData(ctx *context.Context, startTime time.Time, endTime time.Time) { userMap[tmp.ID] = tmp log.Info("userMap key=" + fmt.Sprint(tmp.ID)) } + } else { + } end = end + 100 }