| | |
| | | using LogLibrary.Log; |
| | | using Masuit.Tools; |
| | | using Newtonsoft.Json; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_DTO; |
| | |
| | | try |
| | | { |
| | | input.SessionId = Guid.NewGuid().ToString(); |
| | | input.EmployeeNo = "T00001"; |
| | | input.EmployeeNo = "MITest"; |
| | | input.RequestTime = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now).ToString("yyyy-MM-ddTHH:mm:ss.fffZ"); |
| | | var inputJson = input.ToDictionary(); |
| | | var x = await HttpsClient.PostAsync("http://ts-momapp01:12020/api/MachineIntegration/CellState", inputJson); |
| | | var x = await HttpsClient.PostAsync("http://c24-cellmi3:12020/api/MachineIntegration/CellState", inputJson); |
| | | #region |
| | | //if (x != null) |
| | | //{ |
| | |
| | | { |
| | | Console.WriteLine(err.Message.ToString()); |
| | | LogFactory.GetLog("单电芯属性获取").Error(true, $"\r\r--------------------------------------"); |
| | | LogFactory.GetLog("单电芯属性获取").Error(true, $"请求参数: {JsonConvert.SerializeObject(input)}"); |
| | | LogFactory.GetLog("单电芯属性获取").Error(true, err.Message); |
| | | LogFactory.GetLog("单电芯属性获取").Error(true, err.StackTrace); |
| | | } |
| | | return Task.FromResult<dynamic>(null); |
| | |
| | | try |
| | | { |
| | | input.SessionId = Guid.NewGuid().ToString(); |
| | | input.EmployeeNo = "T00001"; |
| | | input.EmployeeNo = "MITest"; |
| | | input.RequestTime = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now).ToString("yyyy-MM-ddTHH:mm:ss.fffZ"); |
| | | var inputJson = input.ToDictionary(); |
| | | var x = await HttpsClient.PostAsync("http://ts-momapp01:12020/api/MachineIntegration/TrayCellsStatus", inputJson); |
| | | var x = await HttpsClient.PostAsync("http://c24-cellmi3:12020/api/MachineIntegration/TrayCellsStatus", inputJson); |
| | | if (x != null) |
| | | { |
| | | // 反序列化ResultTrayCellsStatus对象 |
| | |
| | | //// 赋值DtBoxingInfoDetails |
| | | //boxingInfo.BoxingInfoDetails = details; |
| | | //var abc = await _boxingInfoService.AddBoxingInfoAsync(boxingInfo); |
| | | content.OK("组盘成功", x); |
| | | content.OK("组盘成功", x); |
| | | } |
| | | LogFactory.GetLog("整盘电芯属性获取").Info(true, $"\r\r--------------------------------------"); |
| | | LogFactory.GetLog("整盘电芯属性获取").Info(true, x); |
| | |
| | | { |
| | | Console.WriteLine(err.Message.ToString()); |
| | | LogFactory.GetLog("整盘电芯属性获取").Error(true, $"\r\r--------------------------------------"); |
| | | LogFactory.GetLog("整盘电芯属性获取").Error(true, $"请求参数: {JsonConvert.SerializeObject(input)}"); |
| | | LogFactory.GetLog("整盘电芯属性获取").Error(true, err.Message); |
| | | LogFactory.GetLog("整盘电芯属性获取").Error(true, err.StackTrace); |
| | | } |
| | | return content; |