Commit e28c900e by huangfusuper

参数包装

parent 1f530475
...@@ -319,7 +319,13 @@ public class ApiFlowOperatingServiceImpl implements ApiFlowOperatingService { ...@@ -319,7 +319,13 @@ public class ApiFlowOperatingServiceImpl implements ApiFlowOperatingService {
String extendedConfiguration = flow.getExtendedConfiguration(); String extendedConfiguration = flow.getExtendedConfiguration();
FlowExtendedConfiguration flowExtendedConfiguration = JSON.parseObject(extendedConfiguration, FlowExtendedConfiguration.class); FlowExtendedConfiguration flowExtendedConfiguration = JSON.parseObject(extendedConfiguration, FlowExtendedConfiguration.class);
if (flowExtendedConfiguration != null) { if (flowExtendedConfiguration != null) {
flowExtendedConfiguration.setPublicParam(JSON.toJSONString(publicMap)); String flowPublicParam = flowExtendedConfiguration.getPublicParam();
Map<String,String> flowPublicParamMap = JSON.parseObject(flowPublicParam, Map.class);
if(flowPublicParamMap == null){
flowPublicParamMap = new HashMap<>();
}
flowPublicParamMap.putAll(publicMap);
flowExtendedConfiguration.setPublicParam(JSON.toJSONString(flowPublicParamMap));
} else { } else {
flowExtendedConfiguration = new FlowExtendedConfiguration(); flowExtendedConfiguration = new FlowExtendedConfiguration();
flowExtendedConfiguration.setPublicParam(JSON.toJSONString(publicMap)); flowExtendedConfiguration.setPublicParam(JSON.toJSONString(publicMap));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment