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

RxUrlManager.getInstance().addUrl("urlKey", "urlValue"); #58

Closed
wupengwp opened this issue Apr 19, 2019 · 6 comments
Closed

RxUrlManager.getInstance().addUrl("urlKey", "urlValue"); #58

wupengwp opened this issue Apr 19, 2019 · 6 comments

Comments

@wupengwp
Copy link

RxUrlManager.getInstance().addUrl("urlKey", "urlValue");这个在初始化之后动态添加url,无效,比如需求需要手动配置ip地址,之前版本RxHttpUtils.getSInstance().baseUrl(BASE_URL)可以,现在该怎么设置?

@lygttpod
Copy link
Owner

RxUrlManager.getInstance().addUrl("urlKey", "urlValue")和setMultipleUrl()都是项目有对个url时候使用的,单url可以使用RxUrlManager.getInstance().setUrl("urlValue")

@wupengwp
Copy link
Author

RxUrlManager.getInstance().setUrl("urlValue")这个在全局初始化配置好之后使用可以更改全局配置的url吗?

@wupengwp
Copy link
Author

RxUrlManager.getInstance().setUrl("urlValue")在初始化全局配置后修改,改成功了,但是使用全局配置的请求失败

@wupengwp
Copy link
Author

RxUrlManager.getInstance().clear(); ApiFactory.getInstance().clearAllApi();找到了,需要这么设置下

@lygttpod
Copy link
Owner

这个问题我记录一下 周末发新版,以后调RxUrlManager.getInstance().setUrl("urlValue")切换url之后就不用调clearAllApi()方法了

@lygttpod
Copy link
Owner

代码已优化V2.3.3更新说明

RxUrlManager.getInstance().clear().setUrl("baseUrl");

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

No branches or pull requests

2 participants