Explorar el Código

[深爱]科目基础资料对接测试,日志打印

zxl hace 1 año
padre
commit
6f611757ea

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

@@ -391,9 +391,8 @@ public class STKController {
         dto.setPage(String.valueOf(pageXjl));
         dto.setSize("500");
         QueryCashFlowItemsDto dtoParam = new QueryCashFlowItemsDto();
-        dto.setParam(dtoParam);
-        CashFlowItemsVo cashFlowItemsVo = new CashFlowItemsVo();
-        cashFlowItemsVo = requestSTKService.getCashFlowItems(dto);
+        dto.setParam(JSONObject.toJSONString(dtoParam));
+        CashFlowItemsVo cashFlowItemsVo = requestSTKService.getCashFlowItems(dto);
         return cashFlowItemsVo;
     }
 

+ 2 - 0
src/main/java/com/uas/eis/service/Impl/RequestSTKServiceImpl.java

@@ -198,6 +198,8 @@ public class RequestSTKServiceImpl implements RequestSTKService {
      * */
     public Map<String,String> getHeaderMap(Object dto) throws Exception {
 
+        log.info("STK,加密前参数:{}",JSONObject.toJSONString(dto));
+
         //获取签名
         String sign = getSign(dto);
         log.info("STK,加密后的签名:"+sign);