使用org.apache.http.legacy进行网络请求时,post请求设置参数有两种方式
HttpPost post = new HttpPost(OrderInfoQueryServiceUrl);
LogUtil.d(TAG, "接口参数params:" +
post.setEntity(new StringEntity(params.get(0).toString()));
post.setEntity(new UrlEncodedFormEntity(params, "UTF-8"));
使用StringEntity不会对参数进行UrlEncode转码