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