From 95ef76d6440a5363c0b7981b1333f82f9345322d Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 07 Jul 2022 15:15:56 +0800 Subject: [PATCH] fix template upload --- src/main/java/com/xcong/farmer/cms/core/template/Configuration.java | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/xcong/farmer/cms/core/template/Configuration.java b/src/main/java/com/xcong/farmer/cms/core/template/Configuration.java index f2c97b0..897392b 100644 --- a/src/main/java/com/xcong/farmer/cms/core/template/Configuration.java +++ b/src/main/java/com/xcong/farmer/cms/core/template/Configuration.java @@ -6,17 +6,20 @@ public abstract class Configuration { - public String staticPath; - public String templatePath; - public String outputPath; + protected static String BASE_URL; + protected static String STATIC_URL; + protected static String staticPath; + protected static String templatePath; + protected static String outputPath; public Configuration() { } - public Configuration(String templatePath, String staticPath, String outputPath) { - this.staticPath = staticPath; - this.templatePath = templatePath; - this.outputPath = outputPath; + public Configuration(String templatePath, String staticPath, String outputPath, String baseUrl, String staticUrl) { + Configuration.staticPath = staticPath; + Configuration.templatePath = templatePath; + Configuration.outputPath = outputPath; + Configuration.BASE_URL = baseUrl; } public static Map<String, String> templateCode = new HashMap<>(); -- Gitblit v1.9.1