From bca40047b9783d5aadf05d64b128191edb418b09 Mon Sep 17 00:00:00 2001 From: Demo <Demo@DESKTOP-CPA90BF> Date: 星期四, 20 六月 2024 16:46:36 +0800 Subject: [PATCH] 修改验签特性 --- Wms/Wms/Controllers/UpApiController.cs | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 49 insertions(+), 0 deletions(-) diff --git a/Wms/Wms/Controllers/UpApiController.cs b/Wms/Wms/Controllers/UpApiController.cs index ab24289..e201dcd 100644 --- a/Wms/Wms/Controllers/UpApiController.cs +++ b/Wms/Wms/Controllers/UpApiController.cs @@ -14,6 +14,7 @@ using Model.ModelVm.BllCheckVm; using WMS.DAL; using Microsoft.AspNetCore.Authorization; +using Utility; namespace Wms.Controllers { @@ -413,6 +414,10 @@ #region 娴嬭瘯灏忔暟浣嶆暟鍊� + ///// <summary> + ///// 娴嬭瘯灏忔暟浣嶆暟鍊� + ///// </summary> + ///// <returns></returns> //[HttpGet] //public IActionResult Demo() //{ @@ -433,6 +438,50 @@ // } //} + /// <summary> + /// 娴嬭瘯楠岀鍔犲瘑 + /// </summary> + /// <returns></returns> + [Verification] + [HttpPost] + public IActionResult Demo2(IdVm model) + { + var result = new ErpModel { Success = -1, Message = "" }; + try + { + //var com = new Common(); + //decimal s = 13.3450M; + //var sdf = com.GetViewVal(4, s); + result = new ErpModel { Success = -1, Message = "sdf.ToString()" }; + + return Ok(result); + } + catch (Exception e) + { + result.Message = e.Message; + return Ok(result); + } + } + + [HttpGet] + public IActionResult Demo3() + { + var result = new ErpModel { Success = -1, Message = "" }; + try + { + var time = DateTimeOffset.Now.ToUnixTimeSeconds(); + result = new ErpModel { Success = 0, Message = time.ToString() }; + + return Ok(result); + } + catch (Exception e) + { + result.Message = e.Message; + return Ok(result); + } + } + + #endregion } } -- Gitblit v1.8.0