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

异常信息 #44

Open
shangjingxie opened this issue Sep 25, 2020 · 0 comments
Open

异常信息 #44

shangjingxie opened this issue Sep 25, 2020 · 0 comments

Comments

@shangjingxie
Copy link

ViseHttp.POST("login")
.baseUrl("http://121.41.44.177/")
.addParam("mobile", "152502016")
.addParam("password", "wrewefa")
.request(new ACallback() {
@OverRide
public void onFail(int errCode, String errMsg) {
ViseLog.e("request errorCode:" + errCode + ",errorMsg:" + errMsg);
}

                @Override
                public void onSuccess(String data) {
                    ViseLog.i("request onSuccess!" + data);
                    mShow_response_data.setText(data);
                }
            });

应用场景: 当服务器返回 类似 { “code”:400, "message:"用户不存在"} 这样的返回数据,调用demo的 ViseHttp.POST, 返回的exception 为: code :1000, msg: UNKNOWN。 这明显与我们预期的返回:“用户不存在” 提示有冲突。请问大佬这应该怎么去改呢?

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

1 participant