浏览代码

虚拟商品自动设为已发货

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

+ 12 - 6
AppStart/Helper/AlipayPayBack2Service.cs

@@ -127,12 +127,8 @@ namespace MySystem
                     if (pro.ProductId == 10 || pro.ProductId == 11 || pro.ProductId == 27 || pro.ProductId == 28 || pro.ProductId == 34 || pro.ProductId == -2)
                     {
                         order.Status = 2;
-                        if(product.ProductKind == 2)
-                        {
-                            order.Status = 2;
-                            order.SendStatus = 1;
-                            order.SendDate = DateTime.Now;
-                        }
+                        order.SendStatus = 1;
+                        order.SendDate = DateTime.Now;
                         int BuyCount = pro.ProductCount;
                         int Kind = 0;
                         int BeforeLeaderLevel = 0;
@@ -257,6 +253,16 @@ namespace MySystem
                             }
                         }
                     }
+                    else
+                    {
+                        if(product.ProductKind == 2)
+                        {
+                            order.Status = 2;
+                            order.SendStatus = 1;
+                            order.SendDate = DateTime.Now;
+                            db.SaveChanges();
+                        }
+                    }
                     // 购买盟主储蓄金
                     if (pro.ProductId == 39 || pro.ProductId == 40)
                     {