lcl 5 maanden geleden
bovenliggende
commit
a1439755a1

BIN
.DS_Store


BIN
AppStart/.DS_Store


+ 4 - 0
AppStart/Helper/PosPushDataNewHelper.cs

@@ -337,6 +337,10 @@ namespace MySystem
                 dataContent.Add("qr_pay_flag", QrPayFlag); //云闪付标记
                 dataContent.Add("fee_rate", FeeRate); //费率
                 dataContent.Add("fee_amt", FeeAmt); //秒到费
+                if(trade.ProductType == "14")
+                {
+                    dataContent.Add("is_first", FeeAmt);
+                }
                 Push("trade", dataContent);
             }
             catch (Exception ex)

+ 14 - 3
AppStart/Helper/SycnSpServer/SycnSpBindService.cs

@@ -253,12 +253,24 @@ namespace MySystem
                     {
                         try
                         {
+                            string KindName = Bind.Remark; //商品类型名称
+                            string Name = Bind.Field3; //商品名称
+                            decimal ActualAmount = decimal.Parse(function.CheckNum(Bind.SeoTitle)); //实付金额
+                            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)
                             {
-                                string KindName = Bind.Remark; //商品类型名称
-                                string Name = Bind.Field3; //商品名称
                                 pos.BindingState = 1;
                                 pos.BindingTime = Bind.CreateTime;
                                 pos.Status = 0;
@@ -280,7 +292,6 @@ namespace MySystem
                                     }
                                 }
 
-                                decimal ActualAmount = decimal.Parse(function.CheckNum(Bind.SeoTitle)); //实付金额
                                 string ActStatus = Bind.Field5; //激活状态名称
                                 string CheckCard = function.CheckNull(RedisDbconn.Instance.Get<string>("SimCheckCard"));
                                 if (KindName == "基础套餐" && function.CheckNull(Name).Contains("双百") && ActStatus == "已激活" && ActualAmount >= 100)

BIN
Areas/.DS_Store


BIN
PublicClass/.DS_Store