|
@@ -28,15 +28,15 @@ namespace MySystem
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- // if(DateTime.Now.Hour > 2 && DateTime.Now.Hour < 4 && DateTime.Now >= DateTime.Parse("2024-10-30 00:00:00"))
|
|
|
- // {
|
|
|
- // string chk = function.ReadInstance("/WifiWithhold/" + DateTime.Now.ToString("yyyyMMdd") + ".txt");
|
|
|
- // if(string.IsNullOrEmpty(chk))
|
|
|
- // {
|
|
|
- // function.WritePage("/WifiWithhold/", "" + DateTime.Now.ToString("yyyyMMdd") + ".txt", DateTime.Now.ToString());
|
|
|
+ if(DateTime.Now.Hour > 2 && DateTime.Now.Hour < 4)
|
|
|
+ {
|
|
|
+ string chk = function.ReadInstance("/WifiWithhold/" + DateTime.Now.ToString("yyyyMMdd") + ".txt");
|
|
|
+ if(string.IsNullOrEmpty(chk))
|
|
|
+ {
|
|
|
+ function.WritePage("/WifiWithhold/", "" + DateTime.Now.ToString("yyyyMMdd") + ".txt", DateTime.Now.ToString());
|
|
|
WifiWithhold();
|
|
|
- // }
|
|
|
- // }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|