|
@@ -169,10 +169,10 @@ namespace MySystem
|
|
|
{
|
|
{
|
|
|
while (true)
|
|
while (true)
|
|
|
{
|
|
{
|
|
|
- // if (DateTime.Now.Hour >= 3)
|
|
|
|
|
- // {
|
|
|
|
|
|
|
+ if (DateTime.Now.Hour >= 3)
|
|
|
|
|
+ {
|
|
|
StartUserTradeGo();
|
|
StartUserTradeGo();
|
|
|
- // }
|
|
|
|
|
|
|
+ }
|
|
|
Thread.Sleep(3000);
|
|
Thread.Sleep(3000);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -316,7 +316,7 @@ namespace MySystem
|
|
|
{
|
|
{
|
|
|
while (true)
|
|
while (true)
|
|
|
{
|
|
{
|
|
|
- if (DateTime.Now.Hour > 0 && DateTime.Now.Hour < 3)
|
|
|
|
|
|
|
+ if (DateTime.Now.Day == 1 && DateTime.Now.Hour > 0 && DateTime.Now.Hour < 3)
|
|
|
{
|
|
{
|
|
|
string TradeMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
|
|
string TradeMonth = DateTime.Now.AddMonths(-1).ToString("yyyyMM");
|
|
|
ResetMaxTradeAmountGo(TradeMonth);
|
|
ResetMaxTradeAmountGo(TradeMonth);
|