From 71d76a3e600949b6dd77c33ba181e850b7e5026a Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Fri, 3 Sep 2021 07:45:38 +0800 Subject: [PATCH] =?UTF-8?q?token=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/container.go b/models/container.go index bd544df..1c7ecdb 100644 --- a/models/container.go +++ b/models/container.go @@ -368,7 +368,7 @@ func (c *Container) getToken() error { logs.Info("缓存token") h, _ := time.ParseDuration("+24d") tZero := time.Time{}.Local().Add(h) - if tZero.After(token.expiration) { + if tZero.Before(token.expiration) { err2, done := getT(c, token) if done { return err2