Commit 699fa05a authored by liucx's avatar liucx

修改时间

parent b48c7b47
......@@ -619,10 +619,12 @@ public class DateUtil {
return false;
if(StockMatchStaticInfo.tradeDay.get(year + ":" + month + ":" + day) != null)
return false;
if(hour < 9 || hour >= 21 || hour == 12)
if(hour < 9 || hour > 16 || hour == 12)
return false;
if(hour == 9 && minute < 25)
return false;
if(hour == 15 && minute >= 25)
return false;
if(hour == 11 && minute >= 50)
return false;
return true;
......
......@@ -104,14 +104,14 @@ public class AssetStockPriceTask implements ApplicationRunner {
e.printStackTrace();
}
try {
Thread.sleep(20000);
Thread.sleep(100000);
} catch (Exception e) {
e.printStackTrace();
}
} else {
try {
Thread.sleep(8000);
Thread.sleep(20000);
} catch (Exception e) {
e.printStackTrace();
}
......
......@@ -111,7 +111,7 @@ public class SmartStockPriceTask implements ApplicationRunner {
e.printStackTrace();
}
try {
Thread.sleep(20000);
Thread.sleep(10000);
} catch (Exception e) {
e.printStackTrace();
}
......
......@@ -115,7 +115,7 @@ public class StockPriceTask implements ApplicationRunner {
} else {
try {
Thread.sleep(8000);
Thread.sleep(80000);
} catch (Exception e) {
e.printStackTrace();
}
......
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