Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dio 5.0.0 #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Support dio 5.0.0 #2

wants to merge 3 commits into from

Conversation

Yesterday17
Copy link

升级 Dio 到 5.0.0

移除了 dio.lock/unlock 相关的代码,因为最新版本中已经不存在相关方法了。可能会有未知的问题?

@hcanyz
Copy link
Owner

hcanyz commented Feb 20, 2023

这个逻辑是 token 过期后挂起所有请求,请求新 token 然后唤起挂起的请求。 移除后会导致 login 接口被调用多次

@hcanyz
Copy link
Owner

hcanyz commented Feb 20, 2023

cfug/dio#1308 官方的替代方案是这个,可以参考下~

@zyk-miao
Copy link

请求更新下dio5

@hcanyz
Copy link
Owner

hcanyz commented Sep 18, 2024

请求更新下dio5

抱歉,暂时没有精力维护这个库。

可以 fork 修改下,不兼容的部分应该只有 token 刷新那块。 欢迎提交 PR~

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.

3 participants