Commit 6ebe4ecc by huangfusuper

避免占位重复解析

parent 287531fe
...@@ -95,9 +95,9 @@ public class CommandAndScriptProcessingMachine implements ProcessingMachine { ...@@ -95,9 +95,9 @@ public class CommandAndScriptProcessingMachine implements ProcessingMachine {
//下载脚本文件 //下载脚本文件
byte[] scriptByteArray = fileSystem.downloaderFile(remotePath); byte[] scriptByteArray = fileSystem.downloaderFile(remotePath);
//替换脚本占位符 //替换脚本占位符
/*if(scriptParamAndPlaceholderDto != null){ if(scriptParamAndPlaceholderDto != null){
scriptByteArray = PlaceholderUtils.resolvePlaceholders(scriptByteArray,scriptParamAndPlaceholderDto.getPlaceholder()); scriptByteArray = PlaceholderUtils.resolvePlaceholders(scriptByteArray,scriptParamAndPlaceholderDto.getPlaceholder());
}*/ }
//获取文件元信息 //获取文件元信息
Map<String, String> fileMate = fileSystem.getFileMate(remotePath); Map<String, String> fileMate = fileSystem.getFileMate(remotePath);
String fileName = fileMate.get("filename"); String fileName = fileMate.get("filename");
......
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