浏览代码

去掉广电卡券逻辑

lcl 1 年之前
父节点
当前提交
c0b8d70004
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      AppStart/Helper/AlipayPayBack2Service.cs

+ 2 - 6
AppStart/Helper/AlipayPayBack2Service.cs

@@ -125,7 +125,7 @@ namespace MySystem
                         pro.ProductId = order.ProductId;
                     }
                     List<int> couponIds = new List<int>();
-                    if (pro.ProductId == 10 || pro.ProductId == 11 || pro.ProductId == 80 || pro.ProductId == 27 || pro.ProductId == 28 || pro.ProductId == 34 || pro.ProductId == -2)
+                    if (pro.ProductId == 10 || pro.ProductId == 11 || pro.ProductId == 27 || pro.ProductId == 28 || pro.ProductId == 34 || pro.ProductId == -2)
                     {
                         order.Status = 2;
                         int BuyCount = pro.ProductCount;
@@ -139,10 +139,6 @@ namespace MySystem
                         {
                             Kind = 2;
                         }
-                        else if (pro.ProductId == 80)
-                        {
-                            Kind = 3;
-                        }
                         else if (pro.ProductId == 28)
                         {
                             Users user = db.Users.FirstOrDefault(m => m.Id == order.UserId && m.LeaderLevel == 0);
@@ -161,7 +157,7 @@ namespace MySystem
                                 user.LeaderLevel = 2;
                             }
                         }
-                        if(Kind <= 3 && (pro.ProductId == 10 || pro.ProductId == 11 || pro.ProductId == 80 || pro.ProductId == 34 || pro.ProductId == -2))
+                        if(Kind <= 2 && (pro.ProductId == 10 || pro.ProductId == 11 || pro.ProductId == 34 || pro.ProductId == -2))
                         {
                             // 购买600一组机具券,返券
                             int CouponCount = 0;