|
@@ -306,16 +306,24 @@ public class RequestSTKServiceImpl implements RequestSTKService {
|
|
|
//时间戳
|
|
//时间戳
|
|
|
String timestamp = Long.toString(System.currentTimeMillis());
|
|
String timestamp = Long.toString(System.currentTimeMillis());
|
|
|
|
|
|
|
|
- JSONObject dto2 = new JSONObject(4);
|
|
|
|
|
- dto2.put("page","1");
|
|
|
|
|
- dto2.put("size","500");
|
|
|
|
|
- JSONObject param = new JSONObject();
|
|
|
|
|
- dto2.put("param",param);
|
|
|
|
|
|
|
+ /*String content = dto.toString();*/
|
|
|
|
|
+ //加签方法的重要参数
|
|
|
|
|
+ JSONObject request=new JSONObject(4);
|
|
|
|
|
+ //request.put("code","MJ3ahZ9f");
|
|
|
|
|
+ request.put("page",1);
|
|
|
|
|
+ request.put("size",500);
|
|
|
|
|
+
|
|
|
|
|
+ //传入参数 此处案例仅放置了时间,可自行添加
|
|
|
|
|
+ JSONObject param=new JSONObject();
|
|
|
|
|
+ //param.put("UPDATE_TIME_start","2024-05-09 14:24:06");
|
|
|
|
|
+ //param.put("UPDATE_TIME_end","2024-05-09 15:01:28");
|
|
|
|
|
+ //param.put("TASKNO","P2022032200000041");
|
|
|
|
|
+ //param.put("TASKCODE","202409");
|
|
|
|
|
|
|
|
- //String content = dto.toString();
|
|
|
|
|
- String content = dto2.toString();
|
|
|
|
|
|
|
|
|
|
|
|
+ request.put("param",param);
|
|
|
|
|
|
|
|
|
|
+ String content = request.toString();
|
|
|
|
|
|
|
|
//加签方法第一个参数
|
|
//加签方法第一个参数
|
|
|
StringBuilder signBuilder = new StringBuilder("appid").append("=").append(STK_APP_ID).append("&")
|
|
StringBuilder signBuilder = new StringBuilder("appid").append("=").append(STK_APP_ID).append("&")
|