From 1bb82963c0d0f38c87aeeffee1d70062e8a9049a Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 21 三月 2023 11:02:01 +0800
Subject: [PATCH] 1

---
 ExportMap/cs/SGUtils.cs     |    4 +++-
 ExportMap/db/PubDBHelper.cs |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ExportMap/cs/SGUtils.cs b/ExportMap/cs/SGUtils.cs
index a405dfd..7090217 100644
--- a/ExportMap/cs/SGUtils.cs
+++ b/ExportMap/cs/SGUtils.cs
@@ -199,7 +199,7 @@
             if (pubid > 0)
             {
                 sys.id = pubid;
-                PubDBHelper.InsertLayer(sys, meta);
+                PubDBHelper.InsertLayer(sys, meta, sys.type == "3dml" ? 100 : 0);
                 PubDBHelper.InsertMetaPub(meta.id, pubid, args.userId);
             }
         }
@@ -238,6 +238,8 @@
             List<string> list = new List<string>();
             foreach (SysMeta meta in metas)
             {
+                if (meta.path.IndexOf("SG\\") > -1) continue;
+
                 string source = Path.Combine(uploadFolder, meta.path);
                 File.Move(source, Path.Combine(sgFolder, meta.id + "_" + meta.name));
 
diff --git a/ExportMap/db/PubDBHelper.cs b/ExportMap/db/PubDBHelper.cs
index 58f1c12..e97dfb9 100644
--- a/ExportMap/db/PubDBHelper.cs
+++ b/ExportMap/db/PubDBHelper.cs
@@ -80,7 +80,7 @@
         {
             bool isImg = imgList.Contains(meta.type);
             string cnName = meta.name.Split(new char[] { '.' })[0];
-            string name = isImg ? "鑷姩鍙戝竷褰卞儚" : "鑷姩鍙戝竷妯″瀷";
+            string name = isImg ? "褰卞儚" : "鑷姩鍙戝竷妯″瀷";
             string serve = isImg ? (meta.type.Equals("mpt") ? "Mpt" : "TMS") : "Tileset";
 
             List<DbParameter> list = new List<DbParameter>();

--
Gitblit v1.9.3