This commit is contained in:
邹宗楠
2023-10-18 19:12:45 +08:00
parent d949fb70ec
commit f885735761

View File

@@ -82,6 +82,7 @@ func (a *APIManager) GetAPI(vendorID int, appOrgCode string) (pfAPI interface{})
}
if tokenInfo.AccessToken != "" && tokenInfo.ExpireTime > time.Now().UnixNano()/1e6 {
api2.SetToken(tokenInfo.AccessToken)
api2.SetVendorOrgCode(code.VendorOrgCode)
} else {
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "淘鲜达token过期", ",请重新授权")
}