Эх сурвалжийг харах

广电卡押金数据推送限制卡类型和套餐

lcl 3 сар өмнө
parent
commit
053b80fdb5

+ 20 - 8
AppStart/Helper/SycnSpServer/SycnSpBindService.cs

@@ -142,15 +142,27 @@ namespace MySystem
                             //     Field2 = Bind.Field5,
                             //     ErrorMsg = ActualAmount.ToString(),
                             // });
-                            PosPushDataNewHelper.Deposit(new ActivateRecord()
+                            bool op = false;
+                            if(!Bind.MerSnNo.StartsWith("CS") && Bind.Field5 == "已激活" && Bind.Field3.Contains("双百套餐") && ActualAmount >= 100)
                             {
-                                SeoKeyword = Bind.Field3,
-                                SeoTitle = ActualAmount.ToString(),
-                                ProductType = Bind.ProductType,
-                                SnNo = Bind.MerSnNo,
-                                MerNo = Bind.MerNo,
-                                Id = Bind.Id,
-                            });
+                                op = true;
+                            }
+                            if(Bind.MerSnNo.StartsWith("CS") && Bind.Field5 == "已激活" && ActualAmount >= 100)
+                            {
+                                op = true;
+                            }
+                            if(op)
+                            {
+                                PosPushDataNewHelper.Deposit(new ActivateRecord()
+                                {
+                                    SeoKeyword = Bind.Field3,
+                                    SeoTitle = ActualAmount.ToString(),
+                                    ProductType = Bind.ProductType,
+                                    SnNo = Bind.MerSnNo,
+                                    MerNo = Bind.MerNo,
+                                    Id = Bind.Id,
+                                });
+                            }
                             BindRecord edit = spdb.BindRecord.FirstOrDefault(m => m.Id == Bind.Id);
                             if (edit != null)
                             {