From c234e2ca3d12605d91f62ce2a8213d33fc6d07c2 Mon Sep 17 00:00:00 2001 From: wenxu12345 <44203734@qq.com> Date: Tue, 10 May 2022 09:16:56 +0800 Subject: [PATCH] log --- pkg/common/token_verify/jwt_token.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/common/token_verify/jwt_token.go b/pkg/common/token_verify/jwt_token.go index 6ead92ef7..703237c2d 100644 --- a/pkg/common/token_verify/jwt_token.go +++ b/pkg/common/token_verify/jwt_token.go @@ -135,8 +135,9 @@ func GetUserIDFromToken(token string, operationID string) (bool, string, string) log.Error(operationID, "ParseToken failed, ", err.Error(), token) return false, "", err.Error() } - log.Debug(operationID, "token claims.ExpiresAt.Second() ", claims.ExpiresAt.Second()) + log.Debug(operationID, "token claims.ExpiresAt.Second() ", claims.ExpiresAt.Unix()) return true, claims.UID, "" + } func ParseTokenGetUserID(token string, operationID string) (error, string) {