Helius
2021-05-25 930b347b18cd672b8091098e39e5523760cca1ca
src/main/java/com/xcong/excoin/quartz/job/XchBaseDataUpdateJob.java
@@ -42,6 +42,7 @@
        log.info("基础数据更新任务");
        // 请求价格等数据 "https://api2.chiaexplorer.com/blockchainSummary"
        String result = pyExec();
        log.info("result======>>{}", result);
        // 每t预计收益
//        String profitPerT = execCurl("https://api2.chiaexplorer.com/chart/xchTibDay?period=2w");
//
@@ -154,10 +155,8 @@
    public String pyExec() {
        String result = "";
        String path = ClassUtils.getDefaultClassLoader().getResource("").getPath();
        String filePath = path + "static/xch.py";
        try {
            Process process = Runtime.getRuntime().exec("python3 " + filePath);
            Process process = Runtime.getRuntime().exec("python2.7 /home/javaweb/yunding/xch.py");
            process.waitFor();
            InputStreamReader ir = new InputStreamReader(process.getInputStream());
            LineNumberReader input = new LineNumberReader(ir);