From 6bbc62fc842c220269d4fb0179c37950dd115d36 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Fri, 27 Dec 2024 16:36:05 +0800 Subject: [PATCH] fix: fix the bug when get user id list --- app/hdl/friend_circle/hdl_friend_circle.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/hdl/friend_circle/hdl_friend_circle.go b/app/hdl/friend_circle/hdl_friend_circle.go index 7eeac87..0728bcb 100644 --- a/app/hdl/friend_circle/hdl_friend_circle.go +++ b/app/hdl/friend_circle/hdl_friend_circle.go @@ -85,7 +85,7 @@ func MySelfList(c *gin.Context) { if friendCircle.ImUid != 0 { imUserIds[i] = friendCircle.ImUid } else { - userIds[i] = friendCircle.Uid + userIds = append(userIds, friendCircle.ImUid) } } @@ -363,7 +363,7 @@ func RecommendList(c *gin.Context) { if friendCircle.ImUid != 0 { imUserIds[i] = friendCircle.ImUid } else { - userIds[i] = friendCircle.Uid + userIds = append(userIds, friendCircle.Uid) } }