From cc88a464d5f1d8d9f00f4eae04f63ce54ecc077d Mon Sep 17 00:00:00 2001 From: xwt <2740516069@qq.com> Date: 星期四, 22 五月 2025 13:40:27 +0800 Subject: [PATCH] 钉钉接口修改 --- .vs/VSWorkspaceState.json | 10 ++++++++-- StandardInterface/MES.Service/service/PLM/WarehouseDownloadDoc.cs | 2 +- StandardInterface/MESApplication/Config/appsettings.json | 21 ++++++++++++++++++++- 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json index 7cec5fb..5841303 100644 --- a/.vs/VSWorkspaceState.json +++ b/.vs/VSWorkspaceState.json @@ -1,7 +1,13 @@ { "ExpandedNodes": [ - "" + "", + "\\StandardInterface", + "\\StandardInterface\\MES.Service", + "\\StandardInterface\\MES.Service\\service", + "\\StandardInterface\\MES.Service\\service\\PLM", + "\\StandardInterface\\MESApplication", + "\\StandardInterface\\MESApplication\\Config" ], - "SelectedNode": "\\MESApplication.sln", + "SelectedNode": "\\StandardInterface", "PreviewInSolutionExplorer": false } \ No newline at end of file diff --git a/StandardInterface/MES.Service/service/PLM/WarehouseDownloadDoc.cs b/StandardInterface/MES.Service/service/PLM/WarehouseDownloadDoc.cs index 5527dae..f678895 100644 --- a/StandardInterface/MES.Service/service/PLM/WarehouseDownloadDoc.cs +++ b/StandardInterface/MES.Service/service/PLM/WarehouseDownloadDoc.cs @@ -15,7 +15,7 @@ { get { - string json = "{\"ap1\":{ \"AcctID\":\"" + "68044981e73323" + "\",\"Username\":\"骞挎繁\",\"Password\":\"gs@123456\",\"Lcid\":2052,\"AuthenticateType\":1,\"PasswordIsEncrypted\":\"false\",\"ClientInfo\":{\"ClientType\":8}}"; + string json = "{\"ap1\":{ \"AcctID\":\"" + "6533e4ab79156b" + "\",\"Username\":\"骞挎繁\",\"Password\":\"gs@123456\",\"Lcid\":2052,\"AuthenticateType\":1,\"PasswordIsEncrypted\":\"false\",\"ClientInfo\":{\"ClientType\":8}}"; var resp = GetResponse("http://47.96.178.105/k3cloud/Kingdee.BOS.ServiceFacade.ServicesStub.User.UserService.ValidateLoginInfo.common.kdsvc", json, new Dictionary<string, string>()); string ret = (new StreamReader(resp.GetResponseStream(), Encoding.UTF8)).ReadToEnd(); var result = JObject.Parse(ret)["Context"]; diff --git a/StandardInterface/MESApplication/Config/appsettings.json b/StandardInterface/MESApplication/Config/appsettings.json index 3f6e8e8..9957c71 100644 --- a/StandardInterface/MESApplication/Config/appsettings.json +++ b/StandardInterface/MESApplication/Config/appsettings.json @@ -1,4 +1,4 @@ -{ +/*{ "Logging": { "LogLevel": { "Default": "Information", @@ -14,4 +14,23 @@ "X-KDApi-AppSec": "817a815631c24517b931ecebe8f8eae1", "X-KDApi-LCID": "2052", "X-KDApi-ServerUrl": "http://47.96.178.105/k3cloud" +}*/ + + +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "AllowedHosts": "*", + "Version": "1.0.0", + "X-KDApi-AcctID": "6533e4ab79156b", + "X-KDApi-UserName": "鎺ュ彛浼犺緭", + "X-KDApi-AppID": "312912_623D2YuEyMAeQ59HTY5qywUM1h3a5qPp", + "X-KDApi-AppSec": "fce5af4fdb1a4640a07f277b3da583ce", + "X-KDApi-LCID": "2052", + "X-KDApi-ServerUrl": "http://47.96.178.105/k3cloud" } \ No newline at end of file -- Gitblit v1.9.3