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

POST请求不设置RequestParams会发生空指针异常,不会发生回调 #293

Closed
macangyewang123 opened this issue Nov 22, 2019 · 0 comments

Comments

@macangyewang123
Copy link

private static FormBody getRequestParams(RequestVersionBuilder versionParams) {
FormBody.Builder builder = new FormBody.Builder();
HttpParams params = versionParams.getRequestParams();
for (Map.Entry<String, Object> entry : params.entrySet()) {
builder.add(entry.getKey(), entry.getValue() + "");
ALog.e("params key:" + entry.getKey() + "-----value:" + entry.getValue());
}
return builder.build();
}
versionParams.getRequestParams()可能为空

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