|
|
@@ -31,7 +31,10 @@ namespace MySystem
|
|
|
{
|
|
|
while (true)
|
|
|
{
|
|
|
- StatTradeAmount();
|
|
|
+ if(RedisDbconn.Instance.Get<string>("StatServerStatus") == "1")
|
|
|
+ {
|
|
|
+ StatTradeAmount();
|
|
|
+ }
|
|
|
Thread.Sleep(10000);
|
|
|
}
|
|
|
}
|
|
|
@@ -206,7 +209,7 @@ namespace MySystem
|
|
|
{
|
|
|
while (true)
|
|
|
{
|
|
|
- if(DateTime.Now.Hour >= 3)
|
|
|
+ if(DateTime.Now.Hour >= 3 && RedisDbconn.Instance.Get<string>("StatServerStatus") == "1")
|
|
|
{
|
|
|
StartPosActNumEverTime();
|
|
|
}
|