From 1acfab2ac790c920ca518587ca41d4eaaf989218 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Tue, 12 Nov 2024 16:47:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Djwt=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_player.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldsrv/action_player.go b/worldsrv/action_player.go index d2c3f41..4c76e04 100644 --- a/worldsrv/action_player.go +++ b/worldsrv/action_player.go @@ -3316,7 +3316,7 @@ func CSGetSwapShopInfo(s *netlib.Session, packetId int, data interface{}, sid in token := jwt.NewWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{ "snid": p.SnId, "platform": p.Platform, - "exp": time.Hour.Seconds() * 24, + "exp": time.Now().Add(time.Hour * 24).Unix(), }) str, err := token.SignedString([]byte(common.Config.AppId)) if err != nil {