Browse Source

增加激活判断条件,划拨时间必须小于绑定时间
开机奖励时间限制改为绑定后30天

lichunlei 3 years ago
parent
commit
e50686965e

+ 1 - 1
AppStart/Helper/StatService.cs

@@ -593,7 +593,7 @@ namespace MySystem
             List<PosMachinesTwo> posList = db.PosMachinesTwo.Where(m => m.ActivationState == 1 && m.ActivationTime >= yesterday && m.ActivationTime < today && !string.IsNullOrEmpty(m.SeoKeyword) && m.SeoKeyword != "0" && m.CreditTrade >= 1000).ToList();
             foreach (PosMachinesTwo pos in posList)
             {
-                if (pos.ActivationTime > DateTime.Now.AddDays(-20))
+                if (pos.BindingTime > DateTime.Now.AddDays(-30))
                 {
                     decimal ActPrize = decimal.Parse(function.CheckNum(pos.SeoKeyword));
                     if (ActPrize > 0)

+ 2 - 3
AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

@@ -190,11 +190,10 @@ namespace MySystem
                                             });
                                         }
                                         decimal CheckMoney = 1000;
-                                        int CheckDays = 20;
+                                        int CheckDays = 30;
                                         if (pos.BrandId == 6)
                                         {
                                             CheckMoney = 5000;
-                                            CheckDays = 30;
                                         }
                                         if (BankCardType == 1 || (BankCardType == 2 && pos.BrandId == 1) || (BankCardType == 2 && pos.BrandId == 3))
                                         {
@@ -216,7 +215,7 @@ namespace MySystem
                                                 pos.IsPurchase = 99;
                                             }
                                         }
-                                        else if (pos.CreditTrade >= CheckMoney && pos.ActivationState == 0 && pos.BindingTime > DateTime.Now.AddDays(-CheckDays))
+                                        else if (pos.CreditTrade >= CheckMoney && pos.ActivationState == 0 && pos.TransferTime < pos.BindingTime && pos.BindingTime > DateTime.Now.AddDays(-CheckDays))
                                         {
                                             decimal deposit = decimal.Parse(function.CheckNum(pos.SeoKeyword));
                                             if (deposit == 0 && pos.IsPurchase != 1)