|
@ -25,7 +25,6 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.io.File;
|
|
|
import java.io.InputStream;
|
|
|
import java.nio.charset.StandardCharsets;
|
|
|
import java.util.*;
|
|
|
|
|
@ -75,6 +74,7 @@ public class FlowManager {
|
|
|
|
|
|
String text = new String(content, StandardCharsets.UTF_8);
|
|
|
if (text.contains("?cron=")) {
|
|
|
text = text.replace("?cron=",routeId+"?cron=");//job名重新命名
|
|
|
String oldStr = text.substring(text.indexOf("?cron=") + 6);
|
|
|
String cron = oldStr.substring(0, oldStr.indexOf("\""));
|
|
|
text = text.replace(cron, newCron);
|
|
@ -751,7 +751,7 @@ public class FlowManager {
|
|
|
/**
|
|
|
* 解析文件 包名和类名
|
|
|
*
|
|
|
* @param fileInput java文件流
|
|
|
* @param file java文件流
|
|
|
* @return
|
|
|
*/
|
|
|
public Map<String, String> uploadAndParse(File file) {
|