From c50652de2567b86e83249be5301d647055be7b62 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=B1=E6=96=8C?= <1324361213@qq.com>
Date: Wed, 23 Jul 2025 14:33:16 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B0=86WMS=E7=9A=84=E5=9C=B0=E5=9D=80?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=B0Web.Config=E4=B8=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Implementation/OrderPushService.cs | 3 +-
Reportapi/MyCode.Project.WebApi/Web.config | 48 ++++++++++---------
2 files changed, 28 insertions(+), 23 deletions(-)
diff --git a/Reportapi/MyCode.Project.Services/Implementation/OrderPushService.cs b/Reportapi/MyCode.Project.Services/Implementation/OrderPushService.cs
index 6ae21ed..1a99291 100644
--- a/Reportapi/MyCode.Project.Services/Implementation/OrderPushService.cs
+++ b/Reportapi/MyCode.Project.Services/Implementation/OrderPushService.cs
@@ -16,6 +16,7 @@ using MyCode.Project.Services.IServices;
using RestSharp;
using System;
using System.Collections.Generic;
+using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -248,7 +249,7 @@ namespace MyCode.Project.Services.Implementation
OrderUnit = n.Unit,
}).ToArray();
- var uri = "http://172.16.42.45:9000";
+ var uri = ConfigurationManager.AppSettings.Get("WMSUri");
var requestString = JsonHelper.ToJson(order, false, true, true);
var client = new RestClient(pushKingdeeOrder.TradeType == 8 ? $"{uri}/sale/order/return" : $"{uri}/sale/order/out");
diff --git a/Reportapi/MyCode.Project.WebApi/Web.config b/Reportapi/MyCode.Project.WebApi/Web.config
index db9adce..c98eadd 100644
--- a/Reportapi/MyCode.Project.WebApi/Web.config
+++ b/Reportapi/MyCode.Project.WebApi/Web.config
@@ -23,32 +23,36 @@
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+