From 00700f5ef12d33da898e9b4391aa5b4a09828ee3 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 10 十一月 2022 10:16:53 +0800 Subject: [PATCH] 1 --- ExportMap/cs/Tool.cs | 40 ---------------------------------------- 1 files changed, 0 insertions(+), 40 deletions(-) diff --git a/ExportMap/cs/Tool.cs b/ExportMap/cs/Tool.cs index c6b5826..f3afc7c 100644 --- a/ExportMap/cs/Tool.cs +++ b/ExportMap/cs/Tool.cs @@ -31,44 +31,6 @@ return String.Format("{0:0.##}{1}", dblSByte, Suffix[i]); } - public static string GetUploadFolder() - { - return GetFolder("uploadFolder"); - } - - public static string GetStyleFolder() - { - return GetFolder("styleFolder"); - } - - public static string GetDownloadFolder() - { - return GetFolder("downloadFolder"); - } - - public static string GetSGFolder() - { - return GetFolder("SGFolder"); - } - - public static string GetPublishFolder() - { - return GetFolder("publishFolder"); - } - - public static string GetFolder(string key) - { - string folder = ConfigurationManager.AppSettings[key]; - - string path = folder.IndexOf(":\\") > -1 ? folder : Path.Combine(BaseDir, folder); - if (!Directory.Exists(path)) - { - Directory.CreateDirectory(path); - } - - return path; - } - public static string GetSetting(string key) { return ConfigurationManager.AppSettings[key]; @@ -103,7 +65,6 @@ return list; } - #region * 鏆傛椂涓嶇敤 * public static void CreateDirectory(string dir) { WindowsIdentity wi = WindowsIdentity.GetCurrent(); @@ -137,6 +98,5 @@ return (T)formatter.Deserialize(stream); } } - #endregion } } \ No newline at end of file -- Gitblit v1.9.3