Commit c95fff51 authored by 张辰's avatar 张辰

1

parent e155b8f2
...@@ -21,18 +21,20 @@ public class PagePdfGenUtils { ...@@ -21,18 +21,20 @@ public class PagePdfGenUtils {
BrowserFetcher.downloadIfNotExist(null); BrowserFetcher.downloadIfNotExist(null);
for (int i = 0;i < 5; i++) { for (int i = 0;i < 5; i++) {
try {
log.info("##### start genPdf " + i); log.info("##### start genPdf " + i);
Thread t = new Thread(new Runnable() {
@Override
public void run() {
try {
genPdf("https://testtamper.tanpuyun.com/hangjiapc/#/billingPdf"); genPdf("https://testtamper.tanpuyun.com/hangjiapc/#/billingPdf");
} catch (Exception e) { } catch (Throwable e) {
log.error("#### {}, error {}", i, e); log.error("#### {}, error {}", e);
e.printStackTrace(); e.printStackTrace();
} }
} }
});
t.start();
}
// ArrayList<String> argList = new ArrayList<>(); // ArrayList<String> argList = new ArrayList<>();
// LaunchOptions options = new LaunchOptionsBuilder() // LaunchOptions options = new LaunchOptionsBuilder()
// .withExecutablePath("/usr/bin/google-chrome") // .withExecutablePath("/usr/bin/google-chrome")
......
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