瀏覽代碼

调整广电卡激活推送逻辑

lcl 5 月之前
父節點
當前提交
db10c87c71
共有 2 個文件被更改,包括 14 次插入11 次删除
  1. 1 1
      AppStart/Helper/PosPushDataNewHelper.cs
  2. 13 10
      AppStart/Helper/SycnSpServer/SycnSpBindService.cs

+ 1 - 1
AppStart/Helper/PosPushDataNewHelper.cs

@@ -339,7 +339,7 @@ namespace MySystem
                 dataContent.Add("fee_amt", FeeAmt); //秒到费
                 if(trade.ProductType == "14")
                 {
-                    dataContent.Add("is_first", FeeAmt);
+                    dataContent.Add("is_first", 1);
                 }
                 Push("trade", dataContent);
             }

+ 13 - 10
AppStart/Helper/SycnSpServer/SycnSpBindService.cs

@@ -256,17 +256,20 @@ namespace MySystem
                             string KindName = Bind.Remark; //商品类型名称
                             string Name = Bind.Field3; //商品名称
                             decimal ActualAmount = decimal.Parse(function.CheckNum(Bind.SeoTitle)); //实付金额
-                            PosPushDataNewHelper.Trade(new TradeRecord()
+                            if(ActualAmount > 0)
                             {
-                                TradeSnNo = Bind.MerSnNo,
-                                MerNo = Bind.MerNo,
-                                TradeAmount = ActualAmount >= 10000 ? ActualAmount / 100 : ActualAmount,
-                                TradeSerialNo = function.MD5_16("sim:" + Bind.Id.ToString()),
-                                CreateDate = Bind.CreateTime,
-                                ProductType = Bind.ProductType,
-                                Field1 = Bind.Field3,
-                                Field2 = Bind.Field5,
-                            });
+                                PosPushDataNewHelper.Trade(new TradeRecord()
+                                {
+                                    TradeSnNo = Bind.MerSnNo,
+                                    MerNo = Bind.MerNo,
+                                    TradeAmount = ActualAmount >= 10000 ? ActualAmount / 100 : ActualAmount,
+                                    TradeSerialNo = function.MD5_16("sim:" + Bind.Id.ToString()),
+                                    CreateDate = Bind.CreateTime,
+                                    ProductType = Bind.ProductType,
+                                    Field1 = Bind.Field3,
+                                    Field2 = Bind.Field5,
+                                });
+                            }
                             PxcModels.MachineForSnNo posFor = db.MachineForSnNo.FirstOrDefault(m => m.SnNo == Bind.MerSnNo) ?? new PxcModels.MachineForSnNo();
                             PxcModels.PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == posFor.SnId);
                             if (pos != null)