From b2c0a435266a00bbd71d562bcd41f2ec311898db Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 04 八月 2023 09:07:37 +0800 Subject: [PATCH] 1 --- ExportMap/cs/XYZUtils.cs | 8 ++++---- ExportMap/export.html | 8 ++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ExportMap/cs/XYZUtils.cs b/ExportMap/cs/XYZUtils.cs index 0014918..2f29fe0 100644 --- a/ExportMap/cs/XYZUtils.cs +++ b/ExportMap/cs/XYZUtils.cs @@ -86,19 +86,19 @@ string dateStr = ExportUtil.DateStr; //string batFile = Path.Combine(BatPath, dateStr + ".bat"); - string tifFile = Path.Combine(Tools.TempDir, ExportUtil.DateStr + ".txt"); + string txtFile = Path.Combine(Tools.TempDir, ExportUtil.DateStr + ".txt"); string xyzPath = Path.Combine(SGUtils.LFData, "2d\\tiles", args.dircode); //if (args.isNew && Directory.Exists(xyzPath)) Tools.DelPath(xyzPath); // 宸插瓨鍦ㄧ殑锛屽垹闄� if (!Directory.Exists(xyzPath)) Directory.CreateDirectory(xyzPath); - WriteText(tifFile, list); + WriteText(txtFile, list); - string cmd = string.Format("python \"{0}\" -qgz {1} -file \"{2}\" -out \"{3}\" -min {4} -max {5} -noData {6}", PyFile, Qgz, tifFile, xyzPath, args.min, args.max, args.noData); + string cmd = string.Format("python \"{0}\" -qgz {1} -file \"{2}\" -out \"{3}\" -min {4} -max {5} -noData {6}", PyFile, Qgz, txtFile, xyzPath, args.min, args.max, args.noData); SysTask task = TaskDBHelper.CreateTask(args, "DOM", "褰卞儚鏁版嵁(DOM)"); err = Tools.ExecCmd(task, cmd, true); //if (File.Exists(batFile)) File.Delete(batFile); - if (File.Exists(tifFile)) File.Delete(tifFile); + if (File.Exists(txtFile)) File.Delete(txtFile); List<int> ids = new List<int>(); string viewFile = Path.Combine(xyzPath, "view.html"); diff --git a/ExportMap/export.html b/ExportMap/export.html index c713de7..ee355a9 100644 --- a/ExportMap/export.html +++ b/ExportMap/export.html @@ -10,7 +10,11 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="js/jquery.1.12.4.js"></script> <script> - var token = "04f00381-cefa-4a57-8b08-899d02814545"; + var token = "2befc513-49b6-45e9-8c22-4909e08c7e44"; + + $(function () { + $("#token").html(token); + }); // Ajax function ajax(url, type, data, dataType, contentType, fn) { @@ -189,7 +193,7 @@ </script> </head> <body> - <h2>鍑哄浘娴嬭瘯</h2> + <h2>Toekn锛�<span id="token" style="font-size: 14px;"></span></h2> <select id="selectPage"> <option>A0</option> <option>A1</option> -- Gitblit v1.9.3