Skip to content

Commit

Permalink
Merge pull request #21 from TomLiu-GitHub/patch-2
Browse files Browse the repository at this point in the history
access_token的有效期目前为2个小时
  • Loading branch information
esap authored Jun 2, 2019
2 parents 4724c1e + dd962c5 commit fa0214b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accesstoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (s *Server) getAccessToken() (err error) {
return at.Error()
}
Printf("[%v::%v]:%+v", s.AppId, s.AgentId, *at)
at.ExpiresIn = time.Now().Unix() + 500
at.ExpiresIn = time.Now().Unix() + at.ExpiresIn-5
s.accessToken = at
return
}
Expand Down

0 comments on commit fa0214b

Please sign in to comment.