okhttputils 可以得到reponse但addParams没有生效
String url = Constants.E_URL; OkHttpUtils .post() .url(url) .addParams("type", "111") .addParams("state", "111") .build() .execute(new StringCallback() { /** * 当请求失败回调 * @param call * @param e * @param id */ @Override public void onError(Call call, Exception e, int id) { Log.e(TAG, "请求失败====" + e.getMessage()); } /** * 当联网成功时候回调 * @param response 请求成功的数据 * @param id */ @Override public void onResponse(String response, int id) { Log.e(TAG, "请求成功======" + response); //解析数据 //processData(response); } });