| | |
| | | |
| | | if (childDeviceCode == "1670" || childDeviceCode == "1666" || childDeviceCode == "1548" || childDeviceCode == "1448") |
| | | { |
| | | if (lastUpdateTime > DateTime.Now.AddMinutes(1)) |
| | | { |
| | | lastUpdateTime = DateTime.Now; |
| | | //if (lastUpdateTime > DateTime.Now.AddMinutes(1)) |
| | | //{ |
| | | // lastUpdateTime = DateTime.Now; |
| | | Platform platform = _platFormRepository.QueryFirst(x => x.DeviceCode == conveyorLine.DeviceCode && x.PlatCode == childDeviceCode && x.Status == "Active"); |
| | | if (platform != null) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //} |
| | | } |
| | | |
| | | #region 调用事件总线通知前端 |
| | |
| | | List<string> strings = platform.Location.Split(',').ToList(); |
| | | |
| | | var result = await HttpHelper.PostAsync(wmsIpAddress, new { Position = childDeviceCode, Tag = (int)taskType, AreaCdoe = platform.Stacker, AreaCdoes = strings, platform.ProductionLine }.Serialize()); |
| | | WriteInfo("OCV请求返回参数", $"时间:【{DateTime.Now}】请求点位【{childDeviceCode}】返回参数【{JsonConvert.SerializeObject(result)}】"); |
| | | |
| | | WebResponseContent content = JsonConvert.DeserializeObject<WebResponseContent>(result); |
| | | |
| | | ConsoleHelper.WriteSuccessLine($"时间:【{DateTime.Now}】请求WMS出库任务返回结果:【{content.Serialize()}】"); |
| | | |
| | | // 检查状态并返回 |
| | | if (!content.Status) |
| | | return; |