Przeglądaj źródła

feat:公司链接地址改为在配置文件配置

Zhenghanjv 1 miesiąc temu
rodzic
commit
40f99e22fc

+ 2 - 1
Platform/AI.Platform.Tool/Configuration/App.json

@@ -47,6 +47,7 @@
   },
   "Media": {
     "Url": "http://localhost:5076/api/File/UploadMedia",
-    "Version": "V1.0.1"
+    "Version": "V1.0.1",
+    "CompanyLink": "http://www.tokheim.com.cn/"
   }
 }

+ 4 - 1
Platform/AI.Platform.Tool/Util/Global.cs

@@ -53,7 +53,10 @@ public static class Global
     /// 广告后台版本
     /// </summary>
     public static string MediaVersion { get { return Setting.Get<string>("Media:Version"); } }
-
+    /// <summary>
+    /// 公司链接
+    /// </summary>
+    public static string CompanyLink { get { return Setting.Get<string>("Media:CompanyLink"); } }
     /// <summary>
     /// 富文本apikey
     /// </summary>

+ 1 - 1
Platform/AI.Platform.Web/Components/Layout/BasicLayout.razor

@@ -51,7 +51,7 @@
             {
                 Key = "tokheim",
                 Title = "托肯恒山科技(广州)有限公司",
-                Href = "http://www.tokheim.com.cn/",
+                Href = Global.CompanyLink,
                 BlankTarget = true,
             },
             new LinkItem