|
@@ -62,6 +62,18 @@ namespace MySystem
|
|
|
{
|
|
|
int OrderId = int.Parse(idString);
|
|
|
DoOrderV2(db, OrderId);
|
|
|
+ Orders order = db.Orders.FirstOrDefault(m => m.Id == OrderId && m.Status > 0);
|
|
|
+ if(order != null)
|
|
|
+ {
|
|
|
+ Products product = db.Products.FirstOrDefault(m => m.Id == order.ProductId) ?? new Products();
|
|
|
+ if(product.ProductKind == 2)
|
|
|
+ {
|
|
|
+ order.Status = 2;
|
|
|
+ order.SendStatus = 1;
|
|
|
+ order.SendDate = DateTime.Now;
|
|
|
+ db.SaveChanges();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
db.Dispose();
|
|
@@ -667,16 +679,7 @@ 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
|
|
|
{
|