From bcf72996c8c0a43c2111bdee1e917d4eb7964cc6 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期四, 11 五月 2023 15:02:19 +0800
Subject: [PATCH] 1

---
 ExportMap/cs/ConvertUtils.cs |   25 +------------------------
 1 files changed, 1 insertions(+), 24 deletions(-)

diff --git a/ExportMap/cs/ConvertUtils.cs b/ExportMap/cs/ConvertUtils.cs
index 0ae0818..c0ddbe3 100644
--- a/ExportMap/cs/ConvertUtils.cs
+++ b/ExportMap/cs/ConvertUtils.cs
@@ -125,8 +125,7 @@
         {
             if (PubDBHelper.IsPublish(meta.id)) return 0;
 
-            SysPublish sys = NewPublish(meta, args);
-            sys.path = path;
+            SysPublish sys = Tools.NewPublish(meta, args, GetReleaseUrl(meta), path);
 
             int pubid = PubDBHelper.InsertPublish(sys);
             if (pubid > 0)
@@ -137,28 +136,6 @@
             }
 
             return pubid;
-        }
-
-        /// <summary>
-        /// 鍒涘缓鏁版嵁鍙戝竷绫�
-        /// </summary>
-        private static SysPublish NewPublish(SysMeta meta, XYZArgs args)
-        {
-            SysPublish sp = new SysPublish();
-            sp.name = meta.name;
-            sp.url = GetReleaseUrl(meta);
-            sp.type = meta.type;
-            sp.status = 3;
-            sp.dirid = meta.dircode;
-            sp.depid = args.depcode;
-            sp.min = 0;
-            sp.max = 0;
-            sp.json = null;
-            sp.create_user = args.userId;
-            sp.geom = null;
-            sp.bak = null;
-
-            return sp;
         }
     }
 }

--
Gitblit v1.9.3