| | |
| | | var claimsIdentity = this.User.Identity as ClaimsIdentity; |
| | | if (claimsIdentity == null) |
| | | { |
| | | return Ok(new { code = 1, msg = "未获取到当前操作人信息" }); |
| | | return Ok(new HttpReturnModel { Success = "1", Message = "未获取到当前操作人信息" }); |
| | | } |
| | | var userId = claimsIdentity.FindFirst(ClaimTypes.Name)?.Value; |
| | | if (string.IsNullOrWhiteSpace(userId)) |
| | | { |
| | | return Ok(new { code = 1, msg = "未获取到当前操作人信息" }); |
| | | return Ok(new HttpReturnModel { Success = "1", Message = "未获取到当前操作人信息" }); |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | new OperationASNServer().AddLogOperationAsn("入库作业", "入库日志", model.PalletNo, "申请储位", $"申请储位托盘号:{model.PalletNo}的失败信息", int.Parse(userId)); |
| | | |
| | | return Ok(new ErpModel { Success = -1, Message = e.Message }); |
| | | return Ok(new HttpReturnModel { Success = "-1", Message = e.Message }); |
| | | } |
| | | } |
| | | |