浏览代码

注释冗余代码

DuGuYang 1 年之前
父节点
当前提交
60f1ac70d2
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      Areas/Api/Controllers/v1/MainServer/MerchantParamSetController.cs

+ 0 - 6
Areas/Api/Controllers/v1/MainServer/MerchantParamSetController.cs

@@ -31,12 +31,6 @@ namespace MySystem.Areas.Api.Controllers.v1
         {
         {
             value = DesDecrypt(value);
             value = DesDecrypt(value);
             JsonData data = JsonMapper.ToObject(value);
             JsonData data = JsonMapper.ToObject(value);
-            int Id = int.Parse(function.CheckInt(data["Id"].ToString()));
-            var merchant = maindb.MerchantInfo.FirstOrDefault(m => m.Id == Id) ?? new MerchantInfo();
-            if (merchant.Id > 0 && merchant.IsAct == 0)
-            {
-                return Json(new AppResultJson() { Status = "-1", Info = "商户尚未激活,不能开启活动" });
-            }
             Dictionary<string, object> Obj = DetailDo(value);
             Dictionary<string, object> Obj = DetailDo(value);
             return Json(new AppResultJson() { Status = "1", Info = "", Data = Obj });
             return Json(new AppResultJson() { Status = "1", Info = "", Data = Obj });
         }
         }