From 1ac0476b0a58cedc43c7189cb3944fb239df419b Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 25 May 2021 11:14:30 +0800
Subject: [PATCH] modify

---
 src/main/java/com/xcong/excoin/quartz/job/XchBaseDataUpdateJob.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/quartz/job/XchBaseDataUpdateJob.java b/src/main/java/com/xcong/excoin/quartz/job/XchBaseDataUpdateJob.java
index ebd0074..140492a 100644
--- a/src/main/java/com/xcong/excoin/quartz/job/XchBaseDataUpdateJob.java
+++ b/src/main/java/com/xcong/excoin/quartz/job/XchBaseDataUpdateJob.java
@@ -37,11 +37,12 @@
     private XchProfitService xchProfitService;
 
     //    @Scheduled(cron = "0 0 0/10 * * ? ")
-    @Scheduled(cron = "0 0/20 * * * ? ")
+    @Scheduled(cron = "0 0/10 * * * ? ")
     public void baseDataUpdate() {
         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");
 //
@@ -119,8 +120,6 @@
     }
 
     public static void main(String[] args) {
-
-
 //        System.out.println(HttpRequest.get("https://www.chiaexplorer.com").execute().body());
 //        System.out.println(execCurl(cmds));
     }
@@ -159,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);

--
Gitblit v1.9.1