Merge branch 'develop_migration' into 'develop_master'
feat: There is no way the See merge request !141
This commit is contained in:
@@ -14,6 +14,8 @@ public class DocConverterPdf {
|
|||||||
|
|
||||||
private static final Logger logger = LoggerFactory.getLogger(DocConverterPdf.class);
|
private static final Logger logger = LoggerFactory.getLogger(DocConverterPdf.class);
|
||||||
|
|
||||||
|
private static String OS_NAME = System.getProperty("os.name").toLowerCase();
|
||||||
|
|
||||||
private static final int ENVIRONMENT = 1;// 环境 1:windows 2:linux
|
private static final int ENVIRONMENT = 1;// 环境 1:windows 2:linux
|
||||||
private String fileString;// (只涉及pdf2swf路径问题)
|
private String fileString;// (只涉及pdf2swf路径问题)
|
||||||
private String outputPath = "";// 输入路径 ,如果不设置就输出在默认的位置
|
private String outputPath = "";// 输入路径 ,如果不设置就输出在默认的位置
|
||||||
@@ -238,6 +240,11 @@ public class DocConverterPdf {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setConvertHost(String convertHost) {
|
public void setConvertHost(String convertHost) {
|
||||||
this.convertHost = convertHost;
|
OS_NAME = OS_NAME.toLowerCase();
|
||||||
|
if (OS_NAME.contains("win")) {
|
||||||
|
this.convertHost = convertHost;
|
||||||
|
} else {
|
||||||
|
this.convertHost = "62.234.136.153";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user