|
@@ -1,6 +1,8 @@
|
|
|
package com.test;
|
|
|
|
|
|
-import java.time.LocalDate;
|
|
|
+import com.alibaba.fastjson2.JSONArray;
|
|
|
+import com.alibaba.fastjson2.JSONObject;
|
|
|
+import com.jjt.common.utils.http.HttpUtils;
|
|
|
|
|
|
/**
|
|
|
* Test$
|
|
@@ -10,7 +12,42 @@ import java.time.LocalDate;
|
|
|
*/
|
|
|
public class Test {
|
|
|
public static void main(String[] args) {
|
|
|
- LocalDate localDate = LocalDate.of(2024, 2, 1);
|
|
|
- System.err.println(localDate);
|
|
|
+ String url = "http://192.168.188.188:18000/api/sas/diff";
|
|
|
+// jsonObject.put("data", );
|
|
|
+ String params = "{\n" +
|
|
|
+ " \"data\": [\n" +
|
|
|
+ " 55,\n" +
|
|
|
+ " 98,\n" +
|
|
|
+ " 67,\n" +
|
|
|
+ " 20,\n" +
|
|
|
+ " 29,\n" +
|
|
|
+ " 27,\n" +
|
|
|
+ " 59,\n" +
|
|
|
+ " 98,\n" +
|
|
|
+ " 88,\n" +
|
|
|
+ " 27,\n" +
|
|
|
+ " 90,\n" +
|
|
|
+ " 90,\n" +
|
|
|
+ " 94,\n" +
|
|
|
+ " 29,\n" +
|
|
|
+ " 81,\n" +
|
|
|
+ " 77,\n" +
|
|
|
+ " 46,\n" +
|
|
|
+ " 65,\n" +
|
|
|
+ " 35\n" +
|
|
|
+ " ]\n" +
|
|
|
+ "}";
|
|
|
+ JSONObject jsonObject = JSONObject.parseObject(params);
|
|
|
+// String result = HttpUtils.dataPost(url, jsonObject);
|
|
|
+
|
|
|
+ JSONObject obj = new JSONObject();
|
|
|
+ JSONArray array = new JSONArray();
|
|
|
+ array.add(1);
|
|
|
+ array.add(3);
|
|
|
+ array.add(5);
|
|
|
+ array.add(7);
|
|
|
+ array.add(123);
|
|
|
+ obj.put("data", array);
|
|
|
+ System.err.println(obj);
|
|
|
}
|
|
|
}
|