Skip to content

Commit

Permalink
🐛 修复refresh_token失效时无限刷新的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Mar 31, 2021
1 parent 7e21e12 commit 6c5a0cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alidrive/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ func RefreshToken(drive *conf.Drive) bool {
return false
}
}
if token.Code != "" {
log.Errorf("盘[%s]刷新token出错:%s", drive.Name, token.Message)
return false
}
//刷新成功 更新token
drive.AccessToken = token.AccessToken
drive.RefreshToken = token.RefreshToken
Expand Down

0 comments on commit 6c5a0cb

Please sign in to comment.