From 50dbc470a87899ba07a42206f8c28e754baa3f60 Mon Sep 17 00:00:00 2001
From: zyf <1071160500@qq.com>
Date: 星期六, 09 八月 2025 11:26:02 +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