| | |
| | | using Model.ModelVm.BllCheckVm; |
| | | using WMS.DAL; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Utility; |
| | | |
| | | namespace Wms.Controllers |
| | | { |
| | |
| | | |
| | | #region 测试小数位数值 |
| | | |
| | | ///// <summary> |
| | | ///// 测试小数位数值 |
| | | ///// </summary> |
| | | ///// <returns></returns> |
| | | //[HttpGet] |
| | | //public IActionResult Demo() |
| | | //{ |
| | |
| | | // } |
| | | //} |
| | | |
| | | /// <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 |
| | | } |
| | | } |