Parcourir la source

立刷0押金机具50元奖励,时间限制到50天

lichunlei il y a 1 an
Parent
commit
b314884082

+ 1 - 1
AppStart/Helper/StatService.cs

@@ -431,7 +431,7 @@ namespace MySystem
         public void activePrizeWithoutDeposit6(int posid = 0)
         {
             WebCMSEntities db = new WebCMSEntities();
-            DateTime yesterday = DateTime.Now.AddDays(-1);
+            DateTime yesterday = DateTime.Now.AddDays(-30);
             DateTime today = DateTime.Now.AddMinutes(-10);
             IQueryable<PosMachinesTwo> posList = db.PosMachinesTwo.Where(m => m.ActivationState == 1 && m.CreditTrade >= 5000 && string.IsNullOrEmpty(m.SeoKeyword) && m.BrandId == 6 && m.Detail != "1");
             if (posid > 0)

+ 1 - 1
AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

@@ -492,7 +492,7 @@ namespace MySystem
         }
 
         //立刷格外奖励
-        private void LiShuaActPrize(PxcModels.WebCMSEntities db, PxcModels.PosMachinesTwo pos, int prize)
+        public void LiShuaActPrize(PxcModels.WebCMSEntities db, PxcModels.PosMachinesTwo pos, int prize)
         {
             PxcModels.PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId);
             if(merchant != null)

+ 34 - 2
Controllers/HomeController.cs

@@ -197,9 +197,41 @@ namespace MySystem.Controllers
             return "ok";
         }
 
-        public string lsprize(int id)
+        public string lsprize(int id = 0)
         {
-            StatService.Instance.activePrizeWithoutDeposit6(id);
+            // StatService.Instance.activePrizeWithoutDeposit6(id);
+            // WebCMSEntities db = new WebCMSEntities();
+            // List<string> poslist = new List<string>();
+            // poslist.Add("N6220Y02004331");
+            // poslist.Add("N6220Y02004411");
+            // poslist.Add("N6220Y02006392");
+            // poslist.Add("N6220Y02008090");
+            // poslist.Add("N6220Y02014659");
+            // poslist.Add("N6220Y02016352");
+            // poslist.Add("N6220Y02018426");
+            // poslist.Add("N6220Y02009475");
+            // poslist.Add("N6220Y02009601");
+            // poslist.Add("N6220Y02009630");
+            // poslist.Add("N6220Y02010111");
+            // poslist.Add("N6220Y02010795");
+            // poslist.Add("N6220Y02011199");
+            // poslist.Add("N6220Y02011405");
+            // poslist.Add("N6220Y02011946");
+            // poslist.Add("N6220Y02172467");
+            // poslist.Add("N6220Y02172563");
+            // poslist.Add("N6220Y02172658");
+            // poslist.Add("N6220Y02172658");
+            // poslist.Add("N6220Y02007603");
+            // foreach(string PosSn in poslist)
+            // {
+            //     PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.PosSn == PosSn);
+            //     if(pos != null)
+            //     {
+            //         // SycnSpTradeService.Instance.LiShuaActPrize(db, pos, 50);
+            //         StatService.Instance.activePrizeWithoutDeposit6(pos.Id);
+            //     }
+            // }
+            // db.Dispose();
             return "ok";
         }