From f949c8886b5881fdd19c7cc46a7ea44ff5f2e011 Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期五, 13 十二月 2024 10:49:19 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiRuiAn/HuaiAn

---
 代码管理/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