From 853b3da7f705938071156fadcddb668b7546e719 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 05 Jul 2022 17:37:55 +0800
Subject: [PATCH] fix 完成文件输出

---
 src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java b/src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java
index 331ebe6..538f32e 100644
--- a/src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java
+++ b/src/main/java/com/xcong/farmer/cms/modules/core/service/impl/CmsCoreServiceImpl.java
@@ -22,10 +22,13 @@
     private TemplateConfiguration cfg;
 
     @Override
-    public void articleProcess(Long id, String templateName) {
+    public void articleProcess(Long id, String templateName, String templatePath) {
         Map<String, Object> data = new HashMap<>();
         data.put("id", id);
         data.put("companyId", 23L);
+        data.put("templateType", "article");
+        data.put("templatePath", templatePath);
+        data.put("templateName", id);
         if (StrUtil.isEmpty(templateName)) {
             templateName = "defualt.artile.html";
         }
@@ -35,6 +38,8 @@
     @Override
     public void columnProcess(Map<String, Object> data, String templateName, boolean article) {
         data.put("companyId", 23L);
+        data.put("templateType", "column");
+        data.put("page", 1);
         if (StrUtil.isEmpty(templateName)) {
             templateName = "defualt.list.html";
         }

--
Gitblit v1.9.1