From e1f7b4b42fb41a8f471664825294c302bd21768b Mon Sep 17 00:00:00 2001 From: AnboevDD Date: Wed, 22 Jan 2025 11:19:41 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BA=20QDoc,=20=D1=83=D0=B1=D1=80=D0=B0=D0=BB?= =?UTF-8?q?=20=D1=8F=D0=B2=D0=BD=D0=BE=D0=B5=20=D0=BF=D1=80=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JSONParser/JSONStructure.cs | 3 ++- JSONParser/Program.cs | 4 ++-- JSONParser/QDocWrapper/ODataAccess.cs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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