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

虚拟商品自动设为已发货

lcl 2 жил өмнө
parent
commit
ed978fb8ba

+ 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)
                     {