|
@@ -37,24 +37,23 @@ public class OAUtil {
|
|
|
|
|
|
public static String receiveRequestInfoByJson(Map<String, Object> parma) {
|
|
|
|
|
|
-// String url = prefix + "/rest/ofs/ReceiveRequestInfoByJson";
|
|
|
-// String body = JSON.toJSONString(parma);
|
|
|
-// // 发送POST请求
|
|
|
-// HttpResponse response = HttpRequest.post(url)
|
|
|
-// .header(headers)
|
|
|
-// .body(body)
|
|
|
-// .execute();
|
|
|
-//
|
|
|
-//// System.out.println("请求参数:" + JSON.toJSONString(parma));
|
|
|
-// // 获取响应状态码
|
|
|
-// int statusCode = response.getStatus();
|
|
|
-//// System.out.println("Status Code: " + statusCode);
|
|
|
-//
|
|
|
-// // 获取响应体
|
|
|
-// String responseBody = response.body();
|
|
|
-//// System.out.println("Response Body: " + responseBody);
|
|
|
-// return responseBody;
|
|
|
- return "";
|
|
|
+ String url = prefix + "/rest/ofs/ReceiveRequestInfoByJson";
|
|
|
+ String body = JSON.toJSONString(parma);
|
|
|
+ // 发送POST请求
|
|
|
+ HttpResponse response = HttpRequest.post(url)
|
|
|
+ .header(headers)
|
|
|
+ .body(body)
|
|
|
+ .execute();
|
|
|
+
|
|
|
+// System.out.println("请求参数:" + JSON.toJSONString(parma));
|
|
|
+ // 获取响应状态码
|
|
|
+ int statusCode = response.getStatus();
|
|
|
+// System.out.println("Status Code: " + statusCode);
|
|
|
+
|
|
|
+ // 获取响应体
|
|
|
+ String responseBody = response.body();
|
|
|
+// System.out.println("Response Body: " + responseBody);
|
|
|
+ return responseBody;
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|