From 787a76798f6d1fe8fe2b97336128a5f0875034ce Mon Sep 17 00:00:00 2001 From: xxred Date: Wed, 7 Nov 2018 10:27:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B9=E6=B3=95=E5=8F=82=E6=95=B0FormCollect?= =?UTF-8?q?ion=E7=BB=9F=E4=B8=80=E4=BF=AE=E6=94=B9=E4=B8=BAIFormCollection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- COMCMS.Web/Areas/AdminCP/Controllers/GuestbookController.cs | 2 +- COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs | 2 +- COMCMS.Web/Areas/AdminCP/Controllers/PermissionController.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/COMCMS.Web/Areas/AdminCP/Controllers/GuestbookController.cs b/COMCMS.Web/Areas/AdminCP/Controllers/GuestbookController.cs index f7cfe46..0b9f10c 100644 --- a/COMCMS.Web/Areas/AdminCP/Controllers/GuestbookController.cs +++ b/COMCMS.Web/Areas/AdminCP/Controllers/GuestbookController.cs @@ -156,7 +156,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers } [HttpPost] [MyAuthorize("edit", "guestbook", "JSON")] - public IActionResult EditGuestbook(FormCollection fc) + public IActionResult EditGuestbook(IFormCollection fc) { string id = fc["Id"]; if (!Utils.IsInt(id) || int.Parse(id) <= 0) diff --git a/COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs b/COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs index 0440ad6..261b689 100644 --- a/COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs +++ b/COMCMS.Web/Areas/AdminCP/Controllers/MemberController.cs @@ -608,7 +608,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers //执行添加用户组 [HttpPost] [MyAuthorize("add", "memberrole", "JSON")] - public IActionResult AddMemberRole(FormCollection fc) + public IActionResult AddMemberRole(IFormCollection fc) { string RoleName = fc["RoleName"]; string RoleDescription = fc["RoleDescription"]; diff --git a/COMCMS.Web/Areas/AdminCP/Controllers/PermissionController.cs b/COMCMS.Web/Areas/AdminCP/Controllers/PermissionController.cs index 7e46894..d619dfd 100644 --- a/COMCMS.Web/Areas/AdminCP/Controllers/PermissionController.cs +++ b/COMCMS.Web/Areas/AdminCP/Controllers/PermissionController.cs @@ -63,7 +63,7 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers [MyAuthorize( "add", "eventkey", "JSON")] [HttpPost] - public IActionResult AddEventKey(FormCollection fc) + public IActionResult AddEventKey(IFormCollection fc) { TargetEvent entity = new TargetEvent(); entity.EventKey = fc["EventKey"];