瀏覽代碼

实时监听待扣款记录,盟主扣款问题

lcl 1 年之前
父節點
當前提交
917bcd4bbc
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 5 5
      AppStart/Helper/PrePosWithholdService.cs
  2. 1 1
      AppStart/Helper/TimeOutPosChargeService.cs

+ 5 - 5
AppStart/Helper/PrePosWithholdService.cs

@@ -121,7 +121,7 @@ namespace MySystem
                     string content = RedisDbconn.Instance.RPop<string>("PreWithholdQueue");
                     if(!string.IsNullOrEmpty(content))
                     {
-                        function.WriteLog("content:" + content, "每月统计押金达标情况");
+                        function.WriteLog("content:" + content, "预发扣款机具申请");
                         JsonData jsonObj = JsonMapper.ToObject(content);
                         int UserId = int.Parse(function.CheckInt(jsonObj["UserId"].ToString()));
                         string SnNo = jsonObj["SnNo"].ToString();
@@ -131,9 +131,9 @@ namespace MySystem
                         ToChargeBackRecord back = db.ToChargeBackRecord.FirstOrDefault(m => m.UserId == UserId && m.Field1 == SnNo && m.Remark == "预发机超时未申请扣款");
                         if(back != null)
                         {
-                            function.WriteLog("预扣款数据:" + Newtonsoft.Json.JsonConvert.SerializeObject(back), "每月统计押金达标情况");
+                            function.WriteLog("预扣款数据:" + Newtonsoft.Json.JsonConvert.SerializeObject(back), "预发扣款机具申请");
                             ChargeAmount = back.ChargeAmount;
-                            function.WriteLog("预扣款是否已扣:" + back.Status, "每月统计押金达标情况");
+                            function.WriteLog("预扣款是否已扣:" + back.Status, "预发扣款机具申请");
                             if(back.Status == 1)
                             {
                                 Utils.Instance.OpAccount(back.UserId, ChargeAmount, 134, false);
@@ -145,11 +145,11 @@ namespace MySystem
                         db.Dispose();
 
                         //减少账户预扣总额
-                        function.WriteLog("是否减少账户预扣总额:" + doBack, "每月统计押金达标情况");
+                        function.WriteLog("是否减少账户预扣总额:" + doBack, "预发扣款机具申请");
                         if(doBack)
                         {
                             Utils.Instance.ToChargeAmount(UserId, -ChargeAmount);
-                            function.WriteLog("减少账户预扣总额:" + ChargeAmount, "每月统计押金达标情况");
+                            function.WriteLog("减少账户预扣总额:" + ChargeAmount, "预发扣款机具申请");
                         }
 
                         Thread.Sleep(500);

+ 1 - 1
AppStart/Helper/TimeOutPosChargeService.cs

@@ -205,7 +205,7 @@ namespace MySystem
                     }
                     if (record.Kind == 1) //盟主预扣款
                     {
-                        if (userAccount.BalanceAmount >= record.ChargeAmount)
+                        if (userAccount.LeaderBalanceAmount >= record.ChargeAmount)
                         {
                             //11:盟主储蓄金增减单(兑换机具券 机具券兑换 系统增加(盟主储蓄金) 系统扣减(盟主储蓄金) 储备金购买)
                             // 示例:+/-金额