From e34f1c323e7154adc2df7f6697db8d9ba658b09f Mon Sep 17 00:00:00 2001
From: tjx <t2856754968@163.com>
Date: 星期二, 14 十月 2025 16:02:23 +0800
Subject: [PATCH] 修正erp接收的返回信息

---
 WebApi/Gs.Toolbox/InterfaceUtil.cs |    7 +++----
 WebApi/Gs.HostIIS/appsettings.json |    6 +++---
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/WebApi/Gs.HostIIS/appsettings.json b/WebApi/Gs.HostIIS/appsettings.json
index 533159d..9d4613f 100644
--- a/WebApi/Gs.HostIIS/appsettings.json
+++ b/WebApi/Gs.HostIIS/appsettings.json
@@ -7,9 +7,9 @@
   },
   "AllowedHosts": "*",
   "ConnectionStrings": "Data Source=192.168.0.51;Initial Catalog=TEST_MES;User ID=sa;Password =LanBao@2025;Encrypt=True;TrustServerCertificate=True;",
-  "TestErpUrl": "http://192.168.0.52:8055/",
-  "TestErpUrl2": "http://192.168.0.52:8055/",
-  "ProductionErpUrl": "http://192.168.0.52:8055/",
+  "TestErpUrl": "http://192.168.0.52:8045/",
+  "TestErpUrl2": "http://192.168.0.52:8045/",
+  "ProductionErpUrl": "http://192.168.0.52:8045/",
   "ServicesPath": "Services",
   "LogPath": "logs",
   "UploadPath": "upload",
diff --git a/WebApi/Gs.Toolbox/InterfaceUtil.cs b/WebApi/Gs.Toolbox/InterfaceUtil.cs
index f82cd7d..1d5c889 100644
--- a/WebApi/Gs.Toolbox/InterfaceUtil.cs
+++ b/WebApi/Gs.Toolbox/InterfaceUtil.cs
@@ -76,7 +76,7 @@
         if (_rtn != -1)
         {
             Result _result = JsonConvert.DeserializeObject<Result>(responseStr);
-            if ("200".Equals(_result.state))
+            if ("200".Equals(_result.code))
                 _rtn = 1;
         }
 
@@ -116,11 +116,10 @@
     /// <summary>
     /// 200鎴愬姛锛屽惁鍒欏け璐�
     /// </summary>
-    public string? state { get; set; }
+    public string? code { get; set; }
 
     public string? msg { get; set; }
 
-    public string? status { get; set; }
+    public string? count { get; set; }
 
-    public string? message { get; set; }
 }
\ No newline at end of file

--
Gitblit v1.9.3