修复jwt超时设置
This commit is contained in:
parent
3eb997c7c3
commit
1acfab2ac7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue