Helius
2021-05-25 1ac0476b0a58cedc43c7189cb3944fb239df419b
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");
//
@@ -157,7 +158,7 @@
        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 " + filePath);
            process.waitFor();
            InputStreamReader ir = new InputStreamReader(process.getInputStream());
            LineNumberReader input = new LineNumberReader(ir);