@@ -53,6 +53,7 @@ public class ElectronUtils {
if (!dir.exists()) {
FileUtils.makeDirs(cmdDir);
}
+
final String parentDir = dir.getParent();
if (isWindows()) {
@@ -51,7 +51,7 @@ public class IndexController {
final String rootDir = systemProperty.getTempDir();
FileUtils.makeDirs(rootDir);
- String targetUrl = "http://baidu.com";
+ String targetUrl = "https://www.baidu.com";
String pdfPath = rootDir + "/test.pdf";
ElectronUtils.toPdf(systemProperty.getProfile(), systemProperty.getDir(), targetUrl, pdfPath);