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/SGUtils.cs | 25 +------------------------ 1 files changed, 1 insertions(+), 24 deletions(-) diff --git a/ExportMap/cs/SGUtils.cs b/ExportMap/cs/SGUtils.cs index b273e62..02e94f8 100644 --- a/ExportMap/cs/SGUtils.cs +++ b/ExportMap/cs/SGUtils.cs @@ -172,8 +172,7 @@ { if (PubDBHelper.IsPublish(meta.id)) return 0; - SysPublish sys = NewPublish(meta, args); - sys.path = meta.id + "\\" + meta.name; + SysPublish sys = Tools.NewPublish(meta, args, GetReleaseUrl(meta, meta.verid), meta.id + "\\" + meta.name); int pubid = PubDBHelper.InsertPublish(sys); if (pubid > 0) @@ -184,28 +183,6 @@ } return pubid; - } - - /// <summary> - /// 鍒涘缓鏁版嵁鍙戝竷绫� - /// </summary> - private static SysPublish NewPublish(SysMeta meta, XYZArgs args) - { - SysPublish sys = new SysPublish(); - sys.name = meta.name; - sys.url = GetReleaseUrl(meta, meta.verid); - sys.type = meta.type; - sys.status = 3; - sys.dirid = meta.dircode; - sys.depid = args.depcode; - sys.min = 0; - sys.max = 0; - sys.json = null; - sys.create_user = args.userId; - sys.geom = null; - sys.bak = null; - - return sys; } /// <summary> -- Gitblit v1.9.3