Commit c95fff51 authored by 张辰's avatar 张辰

1

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