|  |  | 
 |  |  |         } | 
 |  |  |         return content; | 
 |  |  |     } | 
 |  |  |     public async Task<WebResponseContent> Change(EqptRunDto input) | 
 |  |  |     { | 
 |  |  |         WebResponseContent content = new WebResponseContent(); | 
 |  |  |         try | 
 |  |  |         { | 
 |  |  |             input.SessionId = Guid.NewGuid().ToString(); | 
 |  |  |             input.EmployeeNo = "MITest"; | 
 |  |  |             input.RequestTime = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now).ToString("yyyy-MM-ddTHH:mm:ss.fffZ"); | 
 |  |  |             var inputJson = Masuit.Tools.ObjectExtensions.ToDictionary(input); // Specify the namespace explicitly | 
 |  |  |             var configs = _configService.GetConfigsByCategory(CateGoryConst.SYS_MOMIPAddress); | 
 |  |  |             var MOMBase = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.MOMBaseIP)?.ConfigValue; | 
 |  |  |             var ipAddress = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.EqptRun)?.ConfigValue; | 
 |  |  |             if (MOMBase == null || ipAddress == null) | 
 |  |  |             { | 
 |  |  |                 throw new InvalidOperationException("WMS IP 未配置"); | 
 |  |  |             } | 
 |  |  |             var MOMIpAddress = MOMBase + ipAddress; | 
 |  |  |  | 
 |  |  |             var result = HttpsClient.PostAsync(MOMIpAddress, inputJson).Result; | 
 |  |  |  | 
 |  |  |             content.OK(data: result); | 
 |  |  |             LogFactory.GetLog("换型").Info(true, $"\r\r--------------------------------------"); | 
 |  |  |             LogFactory.GetLog("换型").Info(true, input.EquipmentCode); | 
 |  |  |             LogFactory.GetLog("换型").Info(true, result); | 
 |  |  |         } | 
 |  |  |         catch (Exception err) | 
 |  |  |         { | 
 |  |  |             LogFactory.GetLog("换型").Error(true, $"\r\r--------------------------------------"); | 
 |  |  |             LogFactory.GetLog("换型").Error(true, err.StackTrace); | 
 |  |  |             content.Error(err.Message); | 
 |  |  |         } | 
 |  |  |         return content; | 
 |  |  |     } | 
 |  |  | } |