diff --git a/JSONParser/JSONStructure.cs b/JSONParser/JSONStructure.cs index d6a37a7..b088618 100644 --- a/JSONParser/JSONStructure.cs +++ b/JSONParser/JSONStructure.cs @@ -44,7 +44,8 @@ namespace JSONParser { Type = (string)x["Type"], Sid = (string)x["Sid"], - LoginName = (string)x["LoginName"] == null ? null : $"POLY\\{(string)x["LoginName"]}", + //LoginName = (string)x["LoginName"] == null ? null : $"POLY\\{(string)x["LoginName"]}", + LoginName = (string)x["LoginName"] == null ? null : $"{(string)x["LoginName"]}", TypeAuthentication = (string)x["TypeAuthentication"], Status = (bool)x["Status"] }).ToList(); diff --git a/JSONParser/Program.cs b/JSONParser/Program.cs index a8c0fb2..fe5a916 100644 --- a/JSONParser/Program.cs +++ b/JSONParser/Program.cs @@ -19,7 +19,7 @@ var odataClient = odata.Client; // .Filter("Department/BusinessUnit/Name eq 'Бакырчикское горнодобывающее предприятие ТОО' and Status eq 'Active'") // .FindEntriesAsync(); -//var responsePath = @"C:\ОШС_logs\2024_11_20\response.json"; +//var responsePath = @"C:\ОШС_logs_backup\2025_01_22\2025_01_22_03_03_08_response.json"; //var resp = File.ReadAllText(responsePath); //var arr = JArray.Parse(resp); @@ -111,7 +111,7 @@ using (StreamWriter logFileWriter = new($@"{logFolderPath}\{DateTime.Now.ToStrin } //var serialized = JsonConvert.SerializeObject(notValid); -Console.ReadLine(); +//Console.ReadLine(); static async Task GetArrayFromService() { diff --git a/JSONParser/QDocWrapper/ODataAccess.cs b/JSONParser/QDocWrapper/ODataAccess.cs index bb7b70a..5708a93 100644 --- a/JSONParser/QDocWrapper/ODataAccess.cs +++ b/JSONParser/QDocWrapper/ODataAccess.cs @@ -25,7 +25,7 @@ namespace JSONParser.QDocWrapper #endif #if RELEASE - private const string IntegrationServiceUrl = "https://qdoc.polymetal.ru/Integration/odata/"; + private const string IntegrationServiceUrl = "https://qdoc.solidcore-resources.com/Integration/odata/"; private const string Login = "Administrator"; private const string Password = "MQVuEw9avO"; #endif