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

this.httpRequest(true) 给true,检查状态里面的res是为null的 #5

Open
congge668 opened this issue Dec 9, 2023 · 4 comments
Open

Comments

@congge668
Copy link

因为res为null,没法获取到res.code,我项目是code,需要对某些code进行弹框拦截处理。
怎么解决?

@WinWang
Copy link
Owner

WinWang commented Dec 9, 2023

checkResult设置true?,把你项目的响应json贴下,我给的是基于玩安卓的响应,但是开眼的响应不能匹配

@xhg221
Copy link

xhg221 commented Dec 20, 2023

因为res为null,没法获取到res.code,我项目是code,需要对某些code进行弹框拦截处理。 怎么解决?

我也遇到这个问题了,你的解决了吗?

@WinWang
Copy link
Owner

WinWang commented Dec 20, 2023

我晚上用玩安卓的api做个测试吧,因为开眼app没有基础响应的code和message,我也没有验证

@WinWang
Copy link
Owner

WinWang commented Dec 20, 2023

这个问题修改好了,参照TestPage页面的TestViewModel的调用方式即可,页面入口在”我的“MinePage里面

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

3 participants