修复时间问题

This commit is contained in:
ZJY 2021-09-03 19:40:58 +08:00
parent 15e7479af0
commit 5b8fc96354

View File

@ -370,7 +370,7 @@ func (c *Container) getToken() error {
tZero := time.Now().Add(h)
logs.Info(tZero)
logs.Info(token.Expiration)
if tZero.After(token.Expiration) {
if tZero.Before(token.Expiration) {
err2, done := getT(c, token)
if done {
return err2