Browse Source

设置费率禁止操作商户的SeoKeyword字段

lichunlei 2 years ago
parent
commit
3a1e345d49
2 changed files with 14 additions and 14 deletions
  1. 3 3
      AppStart/Helper/SetDepositService.cs
  2. 11 11
      AppStart/Helper/StatService.cs

+ 3 - 3
AppStart/Helper/SetDepositService.cs

@@ -68,7 +68,7 @@ namespace MySystem
                                         pos.UpFeeMan = OpMan;
                                         pos.UpFeeDate = DateTime.Now;
                                         merchant.Status = 1;
-                                        merchant.SeoKeyword = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
+                                        // merchant.SeoKeyword = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
                                     }
                                     else if(Kind == 1)
                                     {
@@ -76,7 +76,7 @@ namespace MySystem
                                         pos.UpFeeMan = OpMan;
                                         pos.UpFeeDate = DateTime.Now;
                                         merchant.Status = 1;
-                                        merchant.SeoKeyword = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
+                                        // merchant.SeoKeyword = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
                                     }
                                     else if(Kind == 2 && pos.BrandId != 2)
                                     {
@@ -84,7 +84,7 @@ namespace MySystem
                                         pos.DownFeeMan = OpMan;
                                         pos.DownFeeDate = DateTime.Now;
                                         merchant.Status = 0;
-                                        merchant.SeoKeyword = "";
+                                        // merchant.SeoKeyword = "";
                                         SetRecordResult(db, RecordId, 1);
                                     }
                                     db.SaveChanges();

+ 11 - 11
AppStart/Helper/StatService.cs

@@ -1638,17 +1638,17 @@ namespace MySystem
         {
             while (true)
             {
-                // if(DateTime.Now.Day == 1 && DateTime.Now.Hour > 4)
-                // {
-                //     string Month = DateTime.Now.AddDays(-1).ToString("yyyy-MM");
-                //     string flag = function.ReadInstance("/ProfitFlag/" + Month + ".txt");
-                //     if (string.IsNullOrEmpty(flag))
-                //     {
-                //         function.WritePage("/ProfitFlag/", Month + ".txt", DateTime.Now.ToString("HH:mm:ss"));
-                //         StatUserLevelStart();
-                //     }
-                // }
-                ProfitHelperV2.Instance.StatProfit();
+                if(DateTime.Now.Day == 3 && DateTime.Now.Hour > 4)
+                {
+                    // string Month = DateTime.Now.AddDays(-1).ToString("yyyy-MM");
+                    // string flag = function.ReadInstance("/ProfitFlag/" + Month + ".txt");
+                    // if (string.IsNullOrEmpty(flag))
+                    // {
+                    //     function.WritePage("/ProfitFlag/", Month + ".txt", DateTime.Now.ToString("HH:mm:ss"));
+                    //     StatUserLevelStart();
+                    // }
+                    ProfitHelperV2.Instance.StatProfit();
+                }
                 Thread.Sleep(600000);
             }
         }