Forráskód Böngészése

取消申请循环订单时,清除限制标记

lichunlei 3 éve
szülő
commit
d8f4e74277

+ 3 - 1
Areas/Admin/Controllers/MainServer/MachineApplyController.cs

@@ -352,7 +352,8 @@ namespace MySystem.Areas.Admin.Controllers
                 { 
                     string SwapSnExpand = apply.SwapSnExpand;
                     if (!string.IsNullOrEmpty(SwapSnExpand))
-                    {
+                    {                        
+                        string key = function.MD5_16(apply.UserId + apply.OrderExpand);
                         string[] list = SwapSnExpand.TrimEnd('\n').Split('\n');
                         if (apply.Sort > 0)
                         {
@@ -438,6 +439,7 @@ namespace MySystem.Areas.Admin.Controllers
                             db.Orders.Remove(order);
                             db.SaveChanges();
                         }
+                        RedisDbconn.Instance.Clear("ConfirmApply2:" + key);
                     }
                 }
             }