From 8d341db9d2d5699d527c88c935f0c4ce255a57a4 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期二, 10 十二月 2024 16:38:12 +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