From 249f6a8da667a1cfe019ce9c647492da9562dd1a Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 11 Jul 2022 17:04:07 +0800
Subject: [PATCH] fix

---
 src/main/java/com/xcong/farmer/cms/core/node/Template.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/xcong/farmer/cms/core/node/Template.java b/src/main/java/com/xcong/farmer/cms/core/node/Template.java
index 78e6476..51d5c27 100644
--- a/src/main/java/com/xcong/farmer/cms/core/node/Template.java
+++ b/src/main/java/com/xcong/farmer/cms/core/node/Template.java
@@ -31,7 +31,7 @@
 
     // 页面中包含的标签
     public static Set<String> TAGS;
-    public static boolean HAS_PAGING = false;
+    public volatile static boolean HAS_PAGING = false;
 
     public Template() {
         TAGS = new HashSet<>();
@@ -63,7 +63,7 @@
         if ("article".equals(templateType)) {
             Object templateName = system.get("templateName");
             if (templateName != null) {
-                this.name = (String) templateName;
+                this.name = String.valueOf(templateName);
             }
         } else if ("column".equals(templateType)) {
             Object page = system.get("page");

--
Gitblit v1.9.1