刘磊
2026-01-17 f1d726e3de8f15cdfe30d4ca5fbba733d73a1e56
ÏîÄ¿´úÂë/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/PassPoint.cs
@@ -6,24 +6,21 @@
namespace WIDESEA_StoragIntegrationServices
{
    /// <summary>
    /// è½¦èº«è¿‡ç‚¹è¯·æ±‚
    /// </summary>
    public partial class MESService
    {
        public WebResponseContent PassPoint(string stationCode)
        public WebResponseContent PassPoint(string stationCode, string rfid)
        {
            WebResponseContent content = new WebResponseContent();
            try
            {
                var configs = _configService.GetConfigsByCategory(CateGoryConst.CONFIG_SYS_MESIPAddress);
                var wmsBase = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.MESIPAddress)?.ConfigValue;
                var ipAddress = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.PassPoint)?.ConfigValue;
                var ipAddress = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.AVIPASS)?.ConfigValue;
                if (wmsBase == null || ipAddress == null)
                {
                    throw new InvalidOperationException("WMS IP æœªé…ç½®");
                }
                var wmsIpAddress = wmsBase + ipAddress;
                var wmsIpAddress = wmsBase + ipAddress;
                var stationInfo = _stationManagerRepository.QueryFirst(x => x.stationChildCode == stationCode);
@@ -32,8 +29,8 @@
                    union_key = Guid.NewGuid().ToString(),
                    line_code = stationInfo.stationChildCode,
                    message_time = DateTime.Now,
                    plant_code = "",
                    pvi = "",
                    plant_code = "1052",
                    pvi = rfid,
                    station_code = stationInfo.stationChildCode,
                    vin = "",
                    pass_time = DateTime.Now
@@ -47,6 +44,9 @@
                    throw new Exception($"车身过点异常:{responseContent.Message}");
                }
                LogFactory.GetLog("车身过点").Info(true, $"\r\r--------------------------------------");
                LogFactory.GetLog("车身过点").Info(true, $"工位号:{stationCode},RFID:{rfid}");
                return content;
            }
            catch (Exception ex)