| | |
| | | using Newtonsoft.Json; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Common.MES; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_Core.Helper; |
| | |
| | | { |
| | | throw new InvalidOperationException("WMS IP æªé
ç½®"); |
| | | } |
| | | var wmsIpAddress = wmsBase + ipAddress; |
| | | var wmsIpAddress = wmsBase + ipAddress; |
| | | |
| | | var stationInfo = _stationManagerRepository.QueryFirst(x => x.stationChildCode == stationCode); |
| | | |
| | |
| | | pass_time = DateTime.Now |
| | | }; |
| | | |
| | | var MESrespon = HttpHelper.Post(wmsIpAddress, passPoint.ToJson()); |
| | | var MESrespon = HttpHelper.PostAsync(wmsIpAddress, passPoint.ToJson(), contentType, headers).Result; |
| | | |
| | | WebResponseContent responseContent = JsonConvert.DeserializeObject<WebResponseContent>(MESrespon); |
| | | if (!responseContent.Status) |
| | | MesResponse responseContent = JsonConvert.DeserializeObject<MesResponse>(MESrespon.ToString()); |
| | | if (responseContent.code != 200) |
| | | { |
| | | throw new Exception($"车身è¿ç¹å¼å¸¸ï¼{responseContent.Message}"); |
| | | throw new Exception($"车身è¿ç¹å¼å¸¸ï¼{responseContent.message}"); |
| | | } |
| | | |
| | | LogFactory.GetLog("车身è¿ç¹").Info(true, $"\r\r--------------------------------------"); |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | LogFactory.GetLog("车身è¿ç¹").Info(true, $"\r\r--------------------------------------"); |
| | | LogFactory.GetLog("车身è¿ç¹").Info(true, $"å·¥ä½å·:{stationCode},RFID:{rfid}"); |
| | | return content.Error(ex.Message); |
| | | } |
| | | } |