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

Get 请求如何参数数组? #227

Closed
querli opened this issue Apr 28, 2024 · 2 comments
Closed

Get 请求如何参数数组? #227

querli opened this issue Apr 28, 2024 · 2 comments
Labels
寻求帮助 Extra attention is needed

Comments

@querli
Copy link

querli commented Apr 28, 2024

问题描述

目前使用Get 请求传参数组,使用想相同的key,最后的key value会更新掉之前的相同的key value,请问如何解决?

期望行为

如何复现

fork仓库并复现问题可以快速解决, 猜测只会让问题晦涩难懂, 耽误所有人时间

截图

异常堆栈信息或者手机截图/视频(拖拽到输入框即可上传)

版本

  • Net:
  • OkHttp:
  • Android:
  • Gradle:
  • Android Studio:
@querli querli added the 寻求帮助 Extra attention is needed label Apr 28, 2024
@liangjingkanji
Copy link
Owner

试下 setQuery 吧, 我不确定是否支持, 如果还有问题请你自己拼URL或者给Okhttp反馈问题

你这种重复Get参数, 后端应该也拿不到吧

@querli
Copy link
Author

querli commented Apr 29, 2024

谢东哥,升级Net最新的版本的库,使用addQuery 可以完成数组请求

@querli querli closed this as completed Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
寻求帮助 Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants