|
|
@@ -28,12 +28,15 @@ public class WifiTradeHelper
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- string Month = DateTime.Now.ToString("yyyyMM");
|
|
|
- string chk = function.ReadInstance("/wifi/trade" + Month + ".txt");
|
|
|
- if(string.IsNullOrEmpty(chk))
|
|
|
+ if(DateTime.Now.Day == 1 && DateTime.Now.Hour < 6)
|
|
|
{
|
|
|
- function.WritePage("/wifi/", "trade" + Month + ".txt", DateTime.Now.ToString());
|
|
|
- DoSomething(Month);
|
|
|
+ string Month = DateTime.Now.ToString("yyyyMM");
|
|
|
+ string chk = function.ReadInstance("/wifi/trade" + Month + ".txt");
|
|
|
+ if(string.IsNullOrEmpty(chk))
|
|
|
+ {
|
|
|
+ function.WritePage("/wifi/", "trade" + Month + ".txt", DateTime.Now.ToString());
|
|
|
+ DoSomething(Month);
|
|
|
+ }
|
|
|
}
|
|
|
Thread.Sleep(3600000);
|
|
|
}
|