瀏覽代碼

激活奖励和0押机具打日志

lcl 1 年之前
父節點
當前提交
306a98497a
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      AppStart/Helper/StatService.cs

+ 5 - 0
AppStart/Helper/StatService.cs

@@ -387,6 +387,7 @@ namespace MySystem
                 PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId);
                 if (merchant != null && pos.ActivationTime.Value <= pos.BindingTime.Value.AddDays(30))
                 {
+                    function.WriteLog("机具号:" + pos.PosSn + ";奖励标记:" + pos.Detail + ";", "实时处理激活奖励");
                     // PosMerchantOtherInfo otherInfo = db.PosMerchantOtherInfo.FirstOrDefault(m => m.CertId == merchant.MerIdcardNo && m.PrizeFlag1 == 0);
                     // if (otherInfo != null)
                     // {
@@ -430,6 +431,7 @@ namespace MySystem
                             if (GetUserId > 0)
                             {
                                 doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, ActPrize);
+                                function.WriteLog("ActPrize:" + ActPrize + "", "实时处理激活奖励");
                             }
                         }
                         else if(ActPrize == 0)
@@ -437,6 +439,7 @@ namespace MySystem
                             if(pos.BrandId == 6)
                             {
                                 doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 50);
+                                function.WriteLog("ActPrize:50", "实时处理激活奖励");
                             }
                         }
                         PosMachinesTwo edit = db.PosMachinesTwo.FirstOrDefault(m => m.Id == pos.Id);
@@ -624,6 +627,7 @@ namespace MySystem
             }
             foreach (PosMachinesTwo pos in posList.ToList())
             {
+                function.WriteLog("机具号:" + pos.PosSn + ";奖励标记:" + pos.Detail + ";", "实时处理来客吧0押激活奖励");
                 PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId);
                 if (merchant != null)
                 {
@@ -640,6 +644,7 @@ namespace MySystem
                         }
                         //首台无押金机返50
                         doActiveReward(db, merchant, pos, GetUserId, ParentNav, TopUserId, 50);
+                        function.WriteLog("ActPrize:50", "实时处理来客吧0押激活奖励");
                         PosMachinesTwo item = db.PosMachinesTwo.FirstOrDefault(m => m.Id == pos.Id);
                         if(item != null)
                         {