From ecee1931031a28ec734eff9aca5b2cdcd96dc49a Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期五, 13 十二月 2024 10:06:55 +0800 Subject: [PATCH] 项目资料 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs" index 4ecf1f0..c038bf7 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseController/ApiBaseController.cs" @@ -8,6 +8,7 @@ using System.Reflection; using System.Text; using System.Threading.Tasks; +using WIDESEA_Core.Attributes; using WIDESEA_Core.BaseServices; namespace WIDESEA_Core.BaseController @@ -40,13 +41,13 @@ return Json(InvokeService("AddData", new object[] { options })); } - [HttpPost, Route("Add")] + [HttpPost, Route("Add"), MethodParamsValidate] public virtual ActionResult Add([FromBody] SaveModel options) { return Json(InvokeService("AddData", new object[] { options })); } - [HttpPost, Route("Update")] + [HttpPost, Route("Update"), MethodParamsValidate] public virtual ActionResult Update([FromBody] SaveModel options) { return Json(InvokeService("UpdateData", new object[] { options })); -- Gitblit v1.9.3