This commit is contained in:
tanghc
2019-07-24 18:45:48 +08:00
parent bdbd716aac
commit 064e5188ce
37 changed files with 662 additions and 373 deletions

View File

@@ -42,9 +42,7 @@ public class OpenRequest {
}
return openHttp.get(url, header);
} else {
return openHttp.request(url, form, header, requestMethod.name());
// 下面这种方式也可以以application/json方式请求
// return openHttp.requestJson(url, JSON.toJSONString(form), header);
return openHttp.requestJson(url, JSON.toJSONString(form), header);
}
}
} catch (IOException e) {