diff --git a/internal/api/manage/management_user.go b/internal/api/manage/management_user.go index 1ff802cc4..6fca39732 100644 --- a/internal/api/manage/management_user.go +++ b/internal/api/manage/management_user.go @@ -134,12 +134,7 @@ func GetUsersOnlineStatus(c *gin.Context) { c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": "GetUserIDFromToken failed"}) return } - if len(config.Config.Manager.AppManagerUid) == 0 { - log.NewError(req.OperationID, "Manager == 0") - c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": "Manager == 0"}) - return - } - req.OpUserID = config.Config.Manager.AppManagerUid[0] + log.NewInfo(params.OperationID, "GetUsersOnlineStatus args ", req.String()) var wsResult []*pbRelay.GetUsersOnlineStatusResp_SuccessResult var respResult []*pbRelay.GetUsersOnlineStatusResp_SuccessResult diff --git a/internal/api/user/user.go b/internal/api/user/user.go index b3abbbab4..4fbbcf5ef 100644 --- a/internal/api/user/user.go +++ b/internal/api/user/user.go @@ -145,6 +145,13 @@ func GetUsersOnlineStatus(c *gin.Context) { c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": "GetUserIDFromToken failed"}) return } + if len(config.Config.Manager.AppManagerUid) == 0 { + log.NewError(req.OperationID, "Manager == 0") + c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": "Manager == 0"}) + return + } + req.OpUserID = config.Config.Manager.AppManagerUid[0] + log.NewInfo(params.OperationID, "GetUsersOnlineStatus args ", req.String()) var wsResult []*pbRelay.GetUsersOnlineStatusResp_SuccessResult var respResult []*pbRelay.GetUsersOnlineStatusResp_SuccessResult