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

上送参数目前不支持List类型。 #5

Open
LiuShuai1020 opened this issue Mar 26, 2019 · 0 comments
Open

上送参数目前不支持List类型。 #5

LiuShuai1020 opened this issue Mar 26, 2019 · 0 comments

Comments

@LiuShuai1020
Copy link

List strings = new ArrayList<>();
strings.put("a");
strings.put("b");
Request.builder().url().post().addParameter("key", strings)

上送参数实际结果:key="[a,b]"
应该上送为:key=[a,b]

目前需要将strings转换为 org.json.JSONArray 才可成功。

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