From a38b50675f2cf8e813bd337ca2f9d9456cc421d3 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期四, 17 十月 2024 09:50:14 +0800 Subject: [PATCH] WCS --- 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs" index 6a8c66b..cd3872c 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs" @@ -59,7 +59,7 @@ } [HttpPost, Route("Del")] - public virtual ActionResult Del(object key) + public virtual ActionResult Del([FromBody] object[] key) { return Json(InvokeService("DeleteData", new object[] { key })); } @@ -77,7 +77,7 @@ return Json(result); } - [HttpPost, Route("DownLoadTemplate")] + [HttpPost, HttpGet, Route("DownLoadTemplate")] public virtual ActionResult DownLoadTemplate() { WebResponseContent result = InvokeService("DownLoadTemplate", new object[] { }) as WebResponseContent; @@ -94,7 +94,6 @@ public virtual ActionResult Import(List<IFormFile> fileInput) { return Json(InvokeService("Import", new object[] { fileInput })); - } private object InvokeService(string methodName, object[] parameters) -- Gitblit v1.9.3