From 8c84e5bdb4ecba8cc3b46bf1743699ee0cf87af1 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 30 八月 2024 12:49:16 +0800
Subject: [PATCH] 1.收款单:删除报错  原因:统一路径设置存在问题 2.染厂 领料单:  问题:不能编辑  原因: 3.物料:  问题:新增报错  原因:统一路径设置存在问题  问题:进入页面后加载缓慢  处理:进入页面后不需要获取数据,点击物料分类再获取数据

---
 WebAPI/InvokeHelper.cs |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/WebAPI/InvokeHelper.cs b/WebAPI/InvokeHelper.cs
index 2cdb5c3..ae7824f 100644
--- a/WebAPI/InvokeHelper.cs
+++ b/WebAPI/InvokeHelper.cs
@@ -16,9 +16,17 @@
         /// </summary>
         public static string Login()
         {
-            var dbId = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "DbId");
-            var useName = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "UserName");
-            var pwd = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "PassWord");
+            //浠嶤鐩橀厤缃枃浠惰幏鍙� CLOUD缃戝潃銆佽处濂椾俊鎭�佺櫥褰曠敤鎴枫�佺櫥褰曞瘑鐮�
+            Pub_Class.ClsPub.GetCLOUDLoginInfo(ref Pub_Class.ClsPub.sExeReturnInfo);
+            var useName = Pub_Class.ClsPub.sCLOUDUseName;
+            var pwd = Pub_Class.ClsPub.sCLOUDPsd;
+            var dbId = Pub_Class.ClsPub.sCLOUDAcc;
+            CloudUrl = Pub_Class.ClsPub.sCLOUDUrl;
+
+            //鍘熶粠Config/kdapi.config妯″潡涓幏鍙�    20240712灞忚斀
+            //var dbId = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "DbId");
+            //var useName = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "UserName");
+            //var pwd = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "PassWord");
             HttpClient httpClient = new HttpClient();
             httpClient.Url = string.Concat(CloudUrl, "Kingdee.BOS.WebApi.ServicesStub.AuthService.ValidateUser.common.kdsvc");
 
@@ -215,6 +223,9 @@
             return httpClient.SyncRequest();
         }
 
+        /// <summary>
+        /// 鍗曟嵁鏌ヨ
+        /// </summary>
         public static string Query(string formId, string content)
         {
             HttpClient httpClient = new HttpClient();

--
Gitblit v1.9.1