lcl 1 gadu atpakaļ
vecāks
revīzija
96eab6e630
1 mainītis faili ar 0 papildinājumiem un 11 dzēšanām
  1. 0 11
      AppStart/Helper/TimeOutPosChargeService.cs

+ 0 - 11
AppStart/Helper/TimeOutPosChargeService.cs

@@ -149,14 +149,10 @@ namespace MySystem
             var info = list.ToList();
             foreach (var items in info)
             {
-                function.WriteLog(DateTime.Now.ToString(), "扣款监听日志");
-                function.WriteLog(items.UserId.ToString(), "扣款监听日志");
                 var userAccount = db.UserAccount.FirstOrDefault(m => m.Id == items.UserId) ?? new UserAccount();
                 var record = info.FirstOrDefault(m => m.Id == items.Id);
                 var check = false; //扣款成功标记
 
-                function.WriteLog("BalanceAmount:" + userAccount.BalanceAmount + ";ChargeAmount:" + record.ChargeAmount + ";", "扣款监听日志");
-                function.WriteLog("in", "扣款监听日志");
                 var ChangeType = 0;
                 var Remark = "";
                 if (record.ChargeType == 124)//过期机具货款扣费
@@ -193,10 +189,8 @@ namespace MySystem
                                 Remark = Remark,
                             }).Entity;
 
-                            function.WriteLog("ToChargeAmount:" + userAccount.ToChargeAmount + ";ChargeAmount:" + record.ChargeAmount + ";", "扣款监听日志");
                             if (userAccount.ToChargeAmount >= record.ChargeAmount)
                             {
-                                function.WriteLog("ok", "扣款监听日志");
                                 userAccount.ToChargeAmount -= record.ChargeAmount;//分期扣款
                             }
                             userAccount.BalanceAmount -= record.ChargeAmount;//扣减余额
@@ -232,10 +226,8 @@ namespace MySystem
                                 TradeMonth = DateTime.Now.ToString("yyyyMM"),
                             }).Entity;
 
-                            function.WriteLog("LeaderToChargeAmount:" + userAccount.LeaderToChargeAmount + ";ChargeAmount:" + record.ChargeAmount + ";", "扣款监听日志");
                             if (userAccount.LeaderToChargeAmount >= record.ChargeAmount)
                             {
-                                function.WriteLog("ok", "扣款监听日志");
                                 userAccount.LeaderToChargeAmount -= record.ChargeAmount;//扣减盟主预扣款
                             }
                             userAccount.LeaderBalanceAmount -= record.ChargeAmount;//扣减盟主可提现余额
@@ -274,10 +266,8 @@ namespace MySystem
                                 OperateType = 2,//操作类别
                             }).Entity;
 
-                            function.WriteLog("OperateToChargeAmount:" + userAccount.OperateToChargeAmount + ";ChargeAmount:" + record.ChargeAmount + ";", "扣款监听日志");
                             if (userAccount.OperateToChargeAmount >= record.ChargeAmount)
                             {
-                                function.WriteLog("ok", "扣款监听日志");
                                 userAccount.OperateToChargeAmount -= record.ChargeAmount;//扣减运营中心预扣款
                             }
                             opUserAccount.ValidForGetAmount -= record.ChargeAmount;//扣减运营中心可提现余额
@@ -319,7 +309,6 @@ namespace MySystem
                         }
                     }
                 }
-                function.WriteLog("\n\n", "扣款监听日志");
             }
             db.SaveChanges();
             opdb.SaveChanges();