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 {