This commit is contained in:
邹宗楠
2022-06-22 10:55:53 +08:00
parent d399c393ca
commit a4a9309e97

View File

@@ -65,6 +65,12 @@ func (a *API) SetExpiresInTime(int2 int64) {
a.expiresIn = time.Now().Unix() + int2
}
func (a *API) ReturnToken() string {
a.locker.Lock()
defer a.locker.Unlock()
return a.accessToken
}
// 获取access_token
func (a *API) GetAccessToken() (tokenInfo *EnterpriseToken, err error) {
parameter := make(map[string]interface{}, 2)