|
@@ -251,8 +251,10 @@ public class TaskWorkNode {
|
|
|
String jsonParam = getRequestParam(conMap);
|
|
|
HttpEntity<String> formEntity = new HttpEntity<String>(jsonParam, headers);
|
|
|
//动态调用接口
|
|
|
- //String instructionUrl = DictionaryKey.INSTRUCTION_URL +"/api/"+ conMap.get("method").toString() ;
|
|
|
-// returnData = restTemplate.postForObject(url, formEntity, String.class);
|
|
|
+ String instructionUrl = DictionaryKey.INSTRUCTION_URL +"/api/"+ conMap.get("method").toString() ;
|
|
|
+ logger.info("instructionUrl=", instructionUrl);
|
|
|
+ logger.info("jsonParam=", jsonParam);
|
|
|
+ returnData = restTemplate.postForObject(instructionUrl, formEntity, String.class);
|
|
|
logger.info("returnData=", returnData);
|
|
|
}
|
|
|
}
|
|
@@ -338,7 +340,7 @@ public class TaskWorkNode {
|
|
|
jsonObject.put("taskNodeId", taskNode.getId());
|
|
|
// jsonObject.put("bizType", bizType);
|
|
|
//jsonObject.put("uid", taskNode.getCreateUser() + "");
|
|
|
- jsonObject.put("url", conMap.get("ip"));
|
|
|
+ jsonObject.put("url", conMap.get("url"));
|
|
|
jsonObject.put("port", conMap.get("port"));
|
|
|
jsonObject.put("data", conMap.get("data"));
|
|
|
|