token调试

This commit is contained in:
ZJY 2021-09-03 07:52:15 +08:00
parent d4c0c8bbc2
commit b824314c40

View File

@ -367,9 +367,9 @@ func (c *Container) getToken() error {
} else {
logs.Info("缓存token")
h, _ := time.ParseDuration("+24d")
tZero := time.Time{}.Local().Add(h)
tZero := time.Now().Add(h)
logs.Info(tZero)
if tZero.Before(token.expiration) {
if tZero.After(token.expiration) {
err2, done := getT(c, token)
if done {
return err2