正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -253,7 +253,7 @@ public class DwHelperUtil { | @@ -253,7 +253,7 @@ public class DwHelperUtil { | ||
| 253 | JSONReader jsonReader = null; | 253 | JSONReader jsonReader = null; |
| 254 | 254 | ||
| 255 | try { | 255 | try { |
| 256 | - response = executeHttpPostRequest(dwDataApi, paramMap); | 256 | + response = executeHttpGetRequest(dwDataApi, paramMap); |
| 257 | 257 | ||
| 258 | if (response.code() == 200) { | 258 | if (response.code() == 200) { |
| 259 | List<T> container = new ArrayList<>(); | 259 | List<T> container = new ArrayList<>(); |
| @@ -315,7 +315,7 @@ public class DwHelperUtil { | @@ -315,7 +315,7 @@ public class DwHelperUtil { | ||
| 315 | } | 315 | } |
| 316 | 316 | ||
| 317 | 317 | ||
| 318 | - protected static Response executeHttpPostRequest(String url, Map<String, Object> paramMap) throws Exception { | 318 | + protected static Response executeHttpGetRequest(String url, Map<String, Object> paramMap) throws Exception { |
| 319 | OkHttpClient client = new OkHttpClient.Builder() | 319 | OkHttpClient client = new OkHttpClient.Builder() |
| 320 | .connectTimeout(60 * 60 * 2, TimeUnit.SECONDS) | 320 | .connectTimeout(60 * 60 * 2, TimeUnit.SECONDS) |
| 321 | .writeTimeout(60 * 2, TimeUnit.SECONDS) | 321 | .writeTimeout(60 * 2, TimeUnit.SECONDS) |
-
请 注册 或 登录 后发表评论