From 6744ea3f56ca1b770cf2d7d6142f345a5f6dc9bf Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期六, 15 四月 2023 15:34:42 +0800
Subject: [PATCH] 1

---
 ExportMap/cs/XYZUtils.cs |    3 ++-
 ExportMap/export.html    |    2 +-
 ExportMap/Web.config     |    4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ExportMap/Web.config b/ExportMap/Web.config
index d3ae3d1..9151ed8 100644
--- a/ExportMap/Web.config
+++ b/ExportMap/Web.config
@@ -12,9 +12,9 @@
     <!-- SG鐨凞B搴� -->
     <add key="sgDB" value="E:\soft\SGConfig\catalog.db"/>
     <!-- PG杩炴帴 -->
-    <add key="pgConn" value="Server=127.0.0.1;Port=5433;Database=langfang;User Id=postgres;Password=postgres;"/>
+    <!--<add key="pgConn" value="Server=127.0.0.1;Port=5433;Database=langfang;User Id=postgres;Password=postgres;"/>-->
     <!--<add key="pgConn" value="Server=192.168.20.205;Port=5433;Database=langfang;User Id=postgres;Password=Postgres!_14_Lf;"/>-->
-    <!--<add key="pgConn" value="Server=103.85.165.99;Port=5433;Database=langfang;User Id=postgres;Password=Postgres!_14_Lf;"/>-->
+    <add key="pgConn" value="Server=103.85.165.99;Port=5433;Database=langfang;User Id=postgres;Password=Postgres!_14_Lf;"/>
     <add key="webpages:Version" value="3.0.0.0"/>
     <add key="webpages:Enabled" value="false"/>
     <add key="ClientValidationEnabled" value="true"/>
diff --git a/ExportMap/cs/XYZUtils.cs b/ExportMap/cs/XYZUtils.cs
index ee75d38..9e8496a 100644
--- a/ExportMap/cs/XYZUtils.cs
+++ b/ExportMap/cs/XYZUtils.cs
@@ -173,7 +173,8 @@
                 PubDBHelper.InsertLayer(sys, new SysMeta()
                 {
                     name = args.name,
-                    type = metas[0].type
+                    type = metas[0].type,
+                    dirname = metas[0].dirname
                 });
                 foreach (SysMeta meta in metas)
                 {
diff --git a/ExportMap/export.html b/ExportMap/export.html
index bd4ff5f..80015b8 100644
--- a/ExportMap/export.html
+++ b/ExportMap/export.html
@@ -77,7 +77,7 @@
 
     // 娴嬭瘯鍒囧浘
     function convertXYZ() {
-      var data = { token: token, ids: [1526, 1527], id: 1, min: 8, max: 18, depcode: "000305", dircode: "0102", userId: 1, name: "DOM_0.2m" };
+      var data = { token: token, ids: [2919, 2920], id: 1, min: 8, max: 18, depcode: "000305", dircode: "0102", userId: 1, name: "DOM_0.2m" };
       ajax("Convert/ToTiles", "POST", JSON.stringify(data), null, null, function (rs) {
         alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
         console.log(rs);

--
Gitblit v1.9.3