From 53d6c0fb67861d6904d883d6342f99cf9df01818 Mon Sep 17 00:00:00 2001 From: tommy <3405129587@qq.com> Date: Tue, 2 Jun 2020 10:59:01 +0800 Subject: [PATCH] token expire_at --- libs/jwt/jwt_go.go | 2 +- log/hdzj.log | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/libs/jwt/jwt_go.go b/libs/jwt/jwt_go.go index 980f65c..d56f304 100644 --- a/libs/jwt/jwt_go.go +++ b/libs/jwt/jwt_go.go @@ -28,7 +28,7 @@ func GenJwtToken(accountType string, accountId, customerId, customerPid, areaId, activityId, areaId, jwt.StandardClaims{ - ExpiresAt: time.Now().Add(time.Duration(24000) * time.Hour).Unix(), + ExpiresAt: time.Now().Add(time.Duration(24) * time.Hour).Unix(), Id: helper.CreateUUID(), Issuer: Issuer, Subject: Subject, diff --git a/log/hdzj.log b/log/hdzj.log index 9e57413..9fbbf6b 100644 --- a/log/hdzj.log +++ b/log/hdzj.log @@ -368,3 +368,27 @@ 2020-06-01 16:29:50.688 ERROR logger/logger.go:87 客户订单异常 2020-06-01 16:29:50.688 ERROR logger/logger.go:87 客户订单异常 2020-06-01 16:29:50.688 ERROR logger/logger.go:87 客户订单异常 +2020-06-01 18:25:13.732 ERROR logger/logger.go:87 获取过期打赏错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-01 18:25:13.734 ERROR logger/logger.go:87 定时任务错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-01 20:04:14.586 ERROR logger/logger.go:87 获取过期打赏错误原因invalid connection +2020-06-01 20:04:14.593 ERROR logger/logger.go:87 定时任务错误原因invalid connection +2020-06-01 20:25:14.106 ERROR logger/logger.go:87 获取过期打赏错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-01 20:25:14.107 ERROR logger/logger.go:87 定时任务错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-01 21:25:13.712 ERROR logger/logger.go:87 获取过期打赏错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-01 21:25:13.713 ERROR logger/logger.go:87 定时任务错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-01 22:25:13.946 ERROR logger/logger.go:87 获取过期打赏错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-01 22:25:13.946 ERROR logger/logger.go:87 定时任务错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-01 23:25:13.712 ERROR logger/logger.go:87 获取过期打赏错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-01 23:25:13.712 ERROR logger/logger.go:87 定时任务错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-02 00:25:13.958 ERROR logger/logger.go:87 获取过期打赏错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-02 00:25:13.958 ERROR logger/logger.go:87 定时任务错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-02 01:25:13.714 ERROR logger/logger.go:87 获取过期打赏错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-02 01:25:13.714 ERROR logger/logger.go:87 定时任务错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-02 02:25:13.711 ERROR logger/logger.go:87 获取过期打赏错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-02 02:25:13.712 ERROR logger/logger.go:87 定时任务错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-02 03:25:13.714 ERROR logger/logger.go:87 获取过期打赏错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-02 03:25:13.714 ERROR logger/logger.go:87 定时任务错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-02 09:29:38.051 ERROR logger/logger.go:87 获取过期打赏错误原因dial tcp: lookup ouxuanhudongapi.t.3pr.com.cn: no such host +2020-06-02 09:29:38.051 ERROR logger/logger.go:87 定时任务错误原因dial tcp: lookup ouxuanhudongapi.t.3pr.com.cn: no such host +2020-06-02 10:25:13.946 ERROR logger/logger.go:87 获取过期打赏错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 +2020-06-02 10:25:13.946 ERROR logger/logger.go:87 定时任务错误原因Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1