From 80309383b6d69e5f03bf7721029fd5272aa45c95 Mon Sep 17 00:00:00 2001 From: cnf <3200815559@qq.com> Date: 星期三, 04 六月 2025 08:48:40 +0800 Subject: [PATCH] 异常处置单功能接口增加结果返回时间 --- MES.Service/service/PLM/WarehouseDownloadDoc.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MES.Service/service/PLM/WarehouseDownloadDoc.cs b/MES.Service/service/PLM/WarehouseDownloadDoc.cs index 18d835b..748ea0a 100644 --- a/MES.Service/service/PLM/WarehouseDownloadDoc.cs +++ b/MES.Service/service/PLM/WarehouseDownloadDoc.cs @@ -15,12 +15,12 @@ { get { - string json = "{\"ap1\":{ \"AcctID\":\"" + "6722eada66becb" + "\",\"Username\":\"Administrator\",\"Password\":\"Yc123456@\",\"Lcid\":2052,\"AuthenticateType\":1,\"PasswordIsEncrypted\":\"false\",\"ClientInfo\":{\"ClientType\":8}}"; + string json = "{\"ap1\":{ \"AcctID\":\"" + "61ce591aee4c5a" + "\",\"Username\":\"Administrator\",\"Password\":\"Yc123456@\",\"Lcid\":2052,\"AuthenticateType\":1,\"PasswordIsEncrypted\":\"false\",\"ClientInfo\":{\"ClientType\":8}}"; var resp = GetResponse("http://121.36.245.199/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"]; string token = result["UserToken"].ToString(); - var warehouseCtx = string.Format("LoginUrl={0}/&UserToken={1}", _cloudUrl, token); + var warehouseCtx = string.Format("LoginUrl={0}&KDServiceSessionId={1}", _cloudUrl, JObject.Parse(ret)["KDSVCSessionId"].ToString());//瀹夊叏鏂版柟寮� return Convert.ToBase64String(Encoding.UTF8.GetBytes(warehouseCtx)); } } -- Gitblit v1.9.3