Forráskód Böngészése

wifi设备激活后预扣款处理

lcl 7 hónapja
szülő
commit
eaa3038756

+ 8 - 8
AppStart/Helper/WifiWarningService.cs

@@ -28,15 +28,15 @@ namespace MySystem
             {
             {
                 try
                 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();
                             WifiWithhold();
-                    //     }
-                    // }
+                        }
+                    }
                 }
                 }
                 catch (Exception ex)
                 catch (Exception ex)
                 {
                 {

+ 8 - 8
AppStart/Helper/WifiWithholdService.cs

@@ -28,15 +28,15 @@ namespace MySystem
             {
             {
                 try
                 try
                 {
                 {
-                    // if(DateTime.Now.Hour > 3 && DateTime.Now.Hour < 5 && 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 > 3 && DateTime.Now.Hour < 5)
+                    {
+                        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();
                             WifiWithhold();
-                    //     }
-                    // }
+                        }
+                    }
                 }
                 }
                 catch (Exception ex)
                 catch (Exception ex)
                 {
                 {