From 61bf44648aec3a56a9ead9168306c933552d8ecf Mon Sep 17 00:00:00 2001
From: sjz <1240968267@qq.com>
Date: 星期六, 15 十一月 2025 21:55:08 +0800
Subject: [PATCH] new

---
 WebApi/Gs.Sys/Services/FmController.cs |    8 ++++++++
 WebApi/Gs.Toolbox/InterfaceUtil.cs     |    8 ++++++++
 WebApi/Gs.HostIIS/appsettings.json     |    6 ++++--
 3 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/WebApi/Gs.HostIIS/appsettings.json b/WebApi/Gs.HostIIS/appsettings.json
index 31d0840..4674b65 100644
--- a/WebApi/Gs.HostIIS/appsettings.json
+++ b/WebApi/Gs.HostIIS/appsettings.json
@@ -10,8 +10,10 @@
   "ConnectionStrings": "Data Source=192.168.8.8;Initial Catalog=YS_MES;User ID=sa;Password =JianHui@2025",
   "TestErpUrl": "http://60.204.140.168:8080//kingdee/billWriteIn",
   "TestErpUrl2": "http://60.204.140.168:8080//kingdee/transferDirect",
-  "TestErpUrl3": "http://60.204.140.168:8888//kingdee/updateShdStatus",
-  "TestErpUrl4": "http://60.204.140.168:8888//kingdee/billReload",
+  "TestErpUrl3": "http://60.204.140.168:8080//kingdee/updateShdStatus",
+  "TestErpUrl4": "http://60.204.140.168:8080//kingdee/billReload",
+  "TestErpUrl5": "http://60.204.140.168:8888//kingdee/billWriteIn",
+  "TestErpUrl6": "http://60.204.140.168:8888//kingdee/transferDirect",
   "ProductionErpUrl": "http://192.168.1.149:8066/WebService1.asmx/mesToErpinfoFormal",
   "ServicesPath": "Services",
   "LogPath": "logs",
diff --git a/WebApi/Gs.Sys/Services/FmController.cs b/WebApi/Gs.Sys/Services/FmController.cs
index fb0c539..4ee54e0 100644
--- a/WebApi/Gs.Sys/Services/FmController.cs
+++ b/WebApi/Gs.Sys/Services/FmController.cs
@@ -273,6 +273,14 @@
                 {
                     (_rtnInt, _rtnStr) = InterfaceUtil.HttpPostErp(_erpJson, keyUserGuid, keyGuid, keyNo, 4);
                 }
+                else if (idtype == "5")
+                {
+                    (_rtnInt, _rtnStr) = InterfaceUtil.HttpPostErp(_erpJson, keyUserGuid, keyGuid, keyNo, 5);
+                }
+                else if (idtype == "6")
+                {
+                    (_rtnInt, _rtnStr) = InterfaceUtil.HttpPostErp(_erpJson, keyUserGuid, keyGuid, keyNo, 6);
+                }
             }
             catch (Exception ex)
             {
diff --git a/WebApi/Gs.Toolbox/InterfaceUtil.cs b/WebApi/Gs.Toolbox/InterfaceUtil.cs
index d56ae82..006c27a 100644
--- a/WebApi/Gs.Toolbox/InterfaceUtil.cs
+++ b/WebApi/Gs.Toolbox/InterfaceUtil.cs
@@ -39,6 +39,14 @@
         {
             url = AppSettingsHelper.getValueByKey("TestErpUrl4");
         }
+        else if (urlType == 5)
+        {
+            url = AppSettingsHelper.getValueByKey("TestErpUrl5");
+        }
+        else if (urlType == 6)
+        {
+            url = AppSettingsHelper.getValueByKey("TestErpUrl6");
+        }
         HttpWebRequest request = null;
         StreamWriter requestStream = null;
         WebResponse response = null;

--
Gitblit v1.9.3