| | |
| | | /// <param name="rfidPrint">RFID</param> |
| | | /// <param name="stationNo">绔欏彴璇锋眰鐐逛綅</param> |
| | | /// <returns></returns> |
| | | public WebResponseContent getCharacteristic(string rfidPrint, string stationNo) |
| | | public WebResponseContent getCharacteristic(string stationNo, string rfidPrint) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | |
| | | { |
| | | plantCode = "1052", |
| | | rfidPrint = rfidPrint, |
| | | vin = vin, |
| | | vin = "", |
| | | messageTime = DateTime.Now.ToString(), |
| | | unionKey = Guid.NewGuid().ToString(), |
| | | }; |
| | |
| | | } |
| | | var wmsIpAddress = wmsBase + ipAddress; |
| | | |
| | | var MESrespon = HttpHelper.Post(wmsIpAddress, characterInfo.ToJson()); |
| | | var MESrespon = HttpHelper.PostAsync(wmsIpAddress, characterInfo.ToJson(), contentType, headers).Result; |
| | | |
| | | GetCarCharacteristicInfo characterRespon = JsonConvert.DeserializeObject<GetCarCharacteristicInfo>(MESrespon); |
| | | if (!characterRespon.success) |
| | | GetCarCharacteristicInfo characterRespon = JsonConvert.DeserializeObject<GetCarCharacteristicInfo>(MESrespon.ToString()); |
| | | if (characterRespon.code != 200) |
| | | { |
| | | throw new Exception($"{characterRespon}"); |
| | | } |