Helius
2021-05-25 f40fc18d708f4ae6efa8c3c134491d134c3c905d
modify
2 files modified
7 ■■■■■ changed files
src/main/java/com/xcong/excoin/quartz/job/XchBaseDataUpdateJob.java 3 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/quartz/job/YdPowerJob.java 4 ●●●● patch | view | raw | blame | history
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);
src/main/java/com/xcong/excoin/quartz/job/YdPowerJob.java
@@ -27,7 +27,7 @@
    /**
     * 产品生效
     */
    @Scheduled(cron = "0 0/1 * * * ?")
//    @Scheduled(cron = "0 0/1 * * * ?")
    public void orderWork() {
        log.info("产品生效任务");
        QueryWrapper<YdOrderEntity> objectQueryWrapper = new QueryWrapper<>();
@@ -49,7 +49,7 @@
    /**
     * 产品终止
     */
    @Scheduled(cron = "0 0/1 * * * ?")
//    @Scheduled(cron = "0 0/1 * * * ?")
    public void orderEnd() {
        QueryWrapper<YdOrderEntity> objectQueryWrapper = new QueryWrapper<>();
        objectQueryWrapper.eq("state",YdOrderEntity.ORDER_STATE_WORK);