From 7a9f955262869e198eff18f10d91392a1d065347 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 25 Apr 2024 17:53:14 +0800 Subject: [PATCH] by Robin at 20240425 --- app/mix/service/logic/token.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/mix/service/logic/token.go b/app/mix/service/logic/token.go index 52deae54..06d8275f 100644 --- a/app/mix/service/logic/token.go +++ b/app/mix/service/logic/token.go @@ -157,6 +157,7 @@ func (p *Token) OpVerifyValid(ctx *gin.Context, token *jwt.Token) error { if err != nil { return fmt.Errorf("failed to acquire token_uuid from token") } + logger.Info("token_uuid: %v", tokenUuid) list, err := p.OpList(ctx, &tokenproto.OpListReq{ Id: tokenUuid, @@ -164,6 +165,11 @@ func (p *Token) OpVerifyValid(ctx *gin.Context, token *jwt.Token) error { if err != nil { return fmt.Errorf("OpList failed") } + if len(list) > 0 { + for _, v := range list { + logger.Info("token_id: %v, token_mid: %v", v.Id, v.Mid) + } + } if len(list) == 0 { return fmt.Errorf("登录失效,请重新登录!") }