From 6edd38ef44da7abea441c9f76f49c3b8c3a143af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 30 Jun 2023 14:13:15 +0800 Subject: [PATCH] 1 --- globals/api/apimanager/apimanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/globals/api/apimanager/apimanager.go b/globals/api/apimanager/apimanager.go index 127972090..50c8a75af 100644 --- a/globals/api/apimanager/apimanager.go +++ b/globals/api/apimanager/apimanager.go @@ -85,7 +85,7 @@ func (a *APIManager) GetAPI(vendorID int, appOrgCode string) (pfAPI interface{}) globals.SugarLogger.Debugf("code token :======= %s", utils.Format4Output(code.Token, false)) var tokenInfo *tao_vegetable.StoreTokenInfo json.Unmarshal([]byte(code.Token), &tokenInfo) - if tokenInfo.AccessToken != "" && tokenInfo.ExpireTime <= time.Now().UnixNano()/1e6 { + if tokenInfo.AccessToken != "" && tokenInfo.ExpireTime > time.Now().UnixNano()/1e6 { api.SetToken(tokenInfo.AccessToken) globals.SugarLogger.Debugf("get token :======= %s", utils.Format4Output(api.GetToken(), false)) } else {