|
|
@@ -29,15 +29,18 @@ namespace MySystem
|
|
|
}
|
|
|
public void StartDo()
|
|
|
{
|
|
|
- StatTradeAmount("2024-01-01");
|
|
|
- StatTradeAmount("2024-01-02");
|
|
|
- StatTradeAmount("2024-01-03");
|
|
|
- StatTradeAmount("2024-01-04");
|
|
|
- StatTradeAmount("2024-01-05");
|
|
|
- StatTradeAmount("2024-01-06");
|
|
|
- StatTradeAmount("2024-01-07");
|
|
|
- StatTradeAmount("2024-01-08");
|
|
|
- StatTradeAmount("2024-01-09");
|
|
|
+ while(true)
|
|
|
+ {
|
|
|
+ string content = RedisDbconn.Instance.RPop<string>("ResetUserTrade2Queue");
|
|
|
+ if(!string.IsNullOrEmpty(content))
|
|
|
+ {
|
|
|
+ StatTradeAmount(content);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Thread.Sleep(60000);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
public void StatTradeAmount(string date)
|
|
|
{
|