fix the issue of cant refresh token

This commit is contained in:
2017-08-08 09:09:03 +08:00
parent 5b0949aa63
commit a7407a9a13
3 changed files with 2 additions and 1 deletions
+1
View File
@@ -1 +1,2 @@
token.json
+1 -1
View File
@@ -60,7 +60,7 @@ func landing(c *gin.Context) {
func fetchTokenHandler(c *gin.Context) {
if time.Now().After(token.ExpiresTime) {
log.Info("Token expires, try to refresh one.")
// fetchToken()
fetchToken()
}
if token != nil {
c.JSON(200, ViewToken{Token: token.AccessToken, ExpiresTime: token.ExpiresTime.Unix()})
BIN
View File
Binary file not shown.