Explorar el Código

虚拟商品自动设为已发货

lcl hace 2 años
padre
commit
d947595f8d
Se han modificado 1 ficheros con 10 adiciones y 6 borrados
  1. 10 6
      AppStart/Helper/AlipayPayBack2Service.cs

+ 10 - 6
AppStart/Helper/AlipayPayBack2Service.cs

@@ -116,12 +116,6 @@ 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;
-                        }
                         int BuyCount = pro.ProductCount;
                         int Kind = 0;
                         int BeforeLeaderLevel = 0;
@@ -673,6 +667,16 @@ namespace MySystem
                         string SendData = "{\"Kind\":\"1\",\"Data\":{\"OrderId\":\"" + order.Id + "\"}}";
                         RedisDbconn.Instance.AddList("PreStoreApplyQueue", SendData);
                     }
+                
+
+                    if(product.ProductKind == 2)
+                    {
+                        order.Status = 2;
+                        order.SendStatus = 1;
+                        order.SendDate = DateTime.Now;
+                        db.SaveChanges();
+                    }
+                
                 }
                 else
                 {