diff --git a/src/main/java/cc/ryanc/halo/config/StartupConfig.java b/src/main/java/cc/ryanc/halo/config/StartupConfig.java index 76f72312d..180e03ba9 100755 --- a/src/main/java/cc/ryanc/halo/config/StartupConfig.java +++ b/src/main/java/cc/ryanc/halo/config/StartupConfig.java @@ -52,7 +52,7 @@ public class StartupConfig implements ApplicationListener */ private void loadActiveTheme() { String themeValue = optionsService.findOneOption("theme"); - if (StringUtils.isNotEmpty("themeValue") && !StringUtils.equals(themeValue, null)) { + if (StringUtils.isNotEmpty(themeValue) && !StringUtils.equals(themeValue, null)) { BaseController.THEME = themeValue; } else { //以防万一 diff --git a/src/main/java/cc/ryanc/halo/utils/HaloUtils.java b/src/main/java/cc/ryanc/halo/utils/HaloUtils.java index 4346776af..476e7d3f3 100755 --- a/src/main/java/cc/ryanc/halo/utils/HaloUtils.java +++ b/src/main/java/cc/ryanc/halo/utils/HaloUtils.java @@ -500,6 +500,7 @@ public class HaloUtils { return null; } + /** * 百度主动推送 * @@ -553,4 +554,5 @@ public class HaloUtils { } return result; } + } diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index e25728bc1..22f1a6a78 100755 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -1,5 +1,11 @@ server: port: 8090 + use-forward-headers: true + undertow: + io-threads : 2 + worker-threads: 36 + buffer-size: 1024 + directBuffers: true spring: datasource: type: com.alibaba.druid.pool.DruidDataSource diff --git a/src/main/resources/templates/common/comment/_native_comment.ftl b/src/main/resources/templates/common/comment/_native_comment.ftl index c8a4cc8ce..158d67cfb 100644 --- a/src/main/resources/templates/common/comment/_native_comment.ftl +++ b/src/main/resources/templates/common/comment/_native_comment.ftl @@ -108,6 +108,15 @@ float: left; border-radius: 50%; margin-right: .7rem; + cursor: pointer; + -webkit-transition: 0.4s; + -webkit-transition: -webkit-transform 0.4s ease-out; + transition: transform 0.4s ease-out; + -moz-transition: -moz-transform 0.4s ease-out; + } + + .native-list-one-img:hover{ + transform: rotate(360deg); } .native-list .native-list-one section {