From 17be05e928f26845f71d35570b1e53b558d468f2 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 07 Jul 2022 16:19:31 +0800 Subject: [PATCH] Merge branch 'master' of http://120.27.238.55:7000/r/farmer-cms --- 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