From c75d838ae2f3b41b6aa0b5e8f16bae321dadc327 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Wed, 12 Jul 2023 20:31:31 +0800 Subject: [PATCH] fix: get user online status fix --- internal/api/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/user.go b/internal/api/user.go index 4e3fb7f7f..4e9d1b0c7 100644 --- a/internal/api/user.go +++ b/internal/api/user.go @@ -107,7 +107,7 @@ func (u *UserApi) GetUsersOnlineStatus(c *gin.Context) { } if !flag { res.UserID = v1 - res.Status = constant.OnlineStatus + res.Status = constant.OfflineStatus } respResult = append(respResult, res) }