From ce43535d56152482c1f12e6b13ba3377bd268009 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期二, 13 八月 2024 13:42:28 +0800
Subject: [PATCH] 期初入库扫码,接受erp发送的用户数据时,在写入MES用户表时增加部分默认字段

---
 MES.Service/util/AppsettingsUtility.cs |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/MES.Service/util/AppsettingsUtility.cs b/MES.Service/util/AppsettingsUtility.cs
index f769cc0..eabb6b4 100644
--- a/MES.Service/util/AppsettingsUtility.cs
+++ b/MES.Service/util/AppsettingsUtility.cs
@@ -5,20 +5,15 @@
 
 public class AppsettingsUtility
 {
-    private static AppSettings _appSettings;
-
-    public static AppSettings Settings
-    {
-        get { return _appSettings; }
-    }
+    public static AppSettings Settings { get; private set; }
 
     public void Initial(IConfiguration configuration)
     {
-        AppSettings myOwn = new AppSettings();
+        var myOwn = new AppSettings();
         //娉ㄦ剰锛氬彲浠ヤ娇鐢ㄥ啋鍙锋潵鑾峰彇鍐呭眰鐨勯厤缃」
         myOwn.TestErpUrl = configuration["AppSettings:TestErpUrl"];
         myOwn.ProductionErpUrl = configuration["AppSettings:ProductionErpUrl"];
         myOwn.DataBaseConn = configuration["AppSettings:DataBaseConn"];
-        _appSettings = myOwn;
+        Settings = myOwn;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3