Browse Source

重置开机奖励,流量分用

lichunlei 2 years ago
parent
commit
913c89c7fd
1 changed files with 20 additions and 1 deletions
  1. 20 1
      AppStart/Helper/TestService.cs

+ 20 - 1
AppStart/Helper/TestService.cs

@@ -17,7 +17,7 @@ namespace MySystem
 
 
         public void Start()
         public void Start()
         {
         {
-            Thread th = new Thread(SubsidyDo);
+            Thread th = new Thread(resetOpenPrize);
             th.IsBackground = true;
             th.IsBackground = true;
             th.Start();
             th.Start();
         }
         }
@@ -551,6 +551,25 @@ namespace MySystem
         }
         }
 
 
         #endregion
         #endregion
+
+        #region 重置开机奖励流量分佣
+
+        public void resetOpenPrize()
+        {
+            string doDate = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd");
+            string flag = function.ReadInstance("/Stat/" + doDate + ".txt");
+            if (string.IsNullOrEmpty(flag))
+            {
+                function.WritePage("/Stat/", doDate + ".txt", DateTime.Now.ToString("HH:mm:ss"));
+                OtherMySqlConn.connstr = Library.ConfigurationManager.AppSettings["Pxc1SqlConnStr"].ToString();
+                // StatService.Instance.StartEverDay(doDate);
+                // StatService.Instance.StatMerchantTrade(doDate);
+                // StatService.Instance.dosomething4(doDate);
+                // StatService.Instance.ListenFluxRecord(doDate);
+            }
+        }
+
+        #endregion
     
     
     }
     }
 }
 }