From 01ca4d2d30873d9b52c0b106e6f372dc318ce021 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 11 十一月 2022 10:10:25 +0800 Subject: [PATCH] 1 --- ExportMap/cs/ExportUtil.cs | 12 ++++++------ ExportMap/Web.config | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ExportMap/Web.config b/ExportMap/Web.config index 1693cea..527f819 100644 --- a/ExportMap/Web.config +++ b/ExportMap/Web.config @@ -3,7 +3,7 @@ <appSettings> <!-- 192.168.20.39,127.0.0.1 --> <add key="lfServer" value="http://127.0.0.1:12316"/> - <add key="exportFolder" value="D:\LF\export"/> + <add key="downloadFolder" value="D:\LF\download"/> <add key="pgConn" value="Server=127.0.0.1;Port=5432;Database=langfang;User Id=postgres;Password=postgres;" /> <add key="webpages:Version" value="3.0.0.0" /> <add key="webpages:Enabled" value="false" /> diff --git a/ExportMap/cs/ExportUtil.cs b/ExportMap/cs/ExportUtil.cs index 52e29c2..87df402 100644 --- a/ExportMap/cs/ExportUtil.cs +++ b/ExportMap/cs/ExportUtil.cs @@ -72,13 +72,13 @@ } /// <summary> - /// 鑾峰彇鍑哄浘鐩綍 + /// 鑾峰彇涓嬭浇鐩綍 /// </summary> - public static string ExportFolder + public static string DownloadFolder { get { - return ConfigurationManager.AppSettings["exportFolder"]; + return ConfigurationManager.AppSettings["downloadFolder"]; } } @@ -98,7 +98,7 @@ /// </summary> public static string GetExportSubFolder() { - string root = ExportFolder; + string root = DownloadFolder; if (!Directory.Exists(root)) { Directory.CreateDirectory(root); @@ -202,7 +202,7 @@ File.Delete(qptFile); } - string imgPath = Path.Combine(ExportFolder, args.imgPath); + string imgPath = Path.Combine(DownloadFolder, args.imgPath); bool flag = File.Exists(imgPath); return flag ? args.imgPath : null; @@ -214,7 +214,7 @@ /// <param name="args">鍑哄浘鍙傛暟</param> public static void CreateTemplate(ExportArgs args) { - string imgPath = Path.Combine(ExportFolder, args.imgPath); + string imgPath = Path.Combine(DownloadFolder, args.imgPath); string templateFile = Path.Combine(SourcesPath, "Template.qpt"); string qptFile = Path.Combine(SourcesPath, args.qpt); if (File.Exists(qptFile)) -- Gitblit v1.9.3