diff --git a/internal/api/auth/auth.go b/internal/api/auth/auth.go index 5441cc2ea..66a0c3825 100644 --- a/internal/api/auth/auth.go +++ b/internal/api/auth/auth.go @@ -157,7 +157,7 @@ func ForceLogout(c *gin.Context) { c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": errMsg}) return } - - log.NewInfo(params.OperationID, utils.GetSelfFuncName(), " return ", reply) - c.JSON(http.StatusOK, reply) + resp := api.ForceLogoutResp{CommResp: api.CommResp{ErrCode: reply.CommonResp.ErrCode, ErrMsg: reply.CommonResp.ErrMsg}} + log.NewInfo(params.OperationID, utils.GetSelfFuncName(), " return ", resp) + c.JSON(http.StatusOK, resp) }