Browse Source

[深爱]科目基础资料对接测试

zxl 1 year ago
parent
commit
3155ed2718

+ 1 - 1
src/main/java/com/uas/eis/controller/STKController.java

@@ -406,7 +406,7 @@ public class STKController {
         //QueryCashFlowItemsDto dtoParam = new QueryCashFlowItemsDto();
         JSONObject dtoParam = new JSONObject();
         //HttpResultResponse cashFlowItemsVo = requestSTKService.buildPostParam(1,500,dtoParam);
-        dto.setParam(JSONObject.toJSONString(dtoParam));
+        dto.setParam(dtoParam);
         CashFlowItemsVo cashFlowItemsVo = requestSTKService.getCashFlowItems(dto);
         //return JSONObject.parseObject(cashFlowItemsVo.getBody(),CashFlowItemsVo.class);
         return cashFlowItemsVo;

+ 10 - 1
src/main/java/com/uas/eis/service/Impl/RequestSTKServiceImpl.java

@@ -306,7 +306,16 @@ public class RequestSTKServiceImpl implements RequestSTKService {
         //时间戳
         String timestamp = Long.toString(System.currentTimeMillis());
 
-        String content = dto.toString();
+        JSONObject dto2 = new JSONObject();
+        dto2.put("page",1);
+        dto2.put("size",500);
+        JSONObject param = new JSONObject();
+        dto2.put("param",param);
+
+        //String content = dto.toString();
+        String content = dto2.toString();
+
+
 
         //加签方法第一个参数
         StringBuilder signBuilder = new StringBuilder("appid").append("=").append(STK_APP_ID).append("&")