From a508775d5c69e61e605c8f00fc18e70279444869 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Mon, 11 Jul 2022 21:49:04 +0800 Subject: [PATCH] add companyCode --- src/main/java/com/xcong/farmer/cms/core/template/Configuration.java | 18 +++++++++++------- 1 files changed, 11 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..ade1636 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,21 @@ public abstract class Configuration { - public String staticPath; - public String templatePath; - public String outputPath; + protected static String API_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 apiUrl, String staticUrl) { + Configuration.staticPath = staticPath; + Configuration.templatePath = templatePath; + Configuration.outputPath = outputPath; + Configuration.API_URL = apiUrl; + Configuration.STATIC_URL = staticUrl; } public static Map<String, String> templateCode = new HashMap<>(); -- Gitblit v1.9.1