|
|
@@ -303,7 +303,25 @@ public class RequestSTKServiceImpl implements RequestSTKService {
|
|
|
* */
|
|
|
public String getSign(Object dto,String timestamp) throws Exception {
|
|
|
|
|
|
- String content = dto.toString();
|
|
|
+ //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");
|
|
|
+
|
|
|
+
|
|
|
+ request.put("param",param);
|
|
|
+
|
|
|
+ String content = request.toString();
|
|
|
|
|
|
//加签方法第一个参数
|
|
|
StringBuilder signBuilder = new StringBuilder("appid").append("=").append(STK_APP_ID).append("&")
|