Skip to content

update: 修复accesstoken无效,导致循环调用的bug#78

Closed
luckalphie wants to merge 1 commit intobinarywang:developfrom
luckalphie:develop
Closed

update: 修复accesstoken无效,导致循环调用的bug#78
luckalphie wants to merge 1 commit intobinarywang:developfrom
luckalphie:develop

Conversation

@luckalphie
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Owner

@binarywang binarywang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已提供另外一种方式,请参考最新代码

//this.configStorage.expireAccessToken();
//return this.execute(executor, uri, data);
//此方法可被重写
expireAccessToken();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你这种做法虽然解决了你的死循环问题,但考虑不够全面,会导致token过期无法自动刷新的问题,造成用户请求无法直接得到结果,而必须再次重试

@binarywang binarywang closed this Nov 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants