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