修复LiverFollower插件启动bug

This commit is contained in:
userA
2023-10-13 16:28:36 +08:00
parent 9e43b5e02c
commit 384d4fefea
5 changed files with 13 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
________ ___ ___ ________ ________ ________ _______ ________ ________ ________ _________
|\ ____\|\ \|\ \|\ __ \|\ __ \|\ __ \|\ ___ \ |\ __ \ |\ __ \|\ __ \|\___ ___\
\ \ \___|\ \ \\\ \ \ \|\ \ \ \|\ \ \ \|\ \ \ __/|\ \ \|\ \ \ \ \|\ /\ \ \|\ \|___ \ \_|
\ \ \ \ \ __ \ \ \\\ \ \ ____\ \ ____\ \ \_|/_\ \ _ _\ \ \ __ \ \ \\\ \ \ \ \
\ \ \____\ \ \ \ \ \ \\\ \ \ \___|\ \ \___|\ \ \_|\ \ \ \\ \| \ \ \|\ \ \ \\\ \ \ \ \
\ \_______\ \__\ \__\ \_______\ \__\ \ \__\ \ \_______\ \__\\ _\ \ \_______\ \_______\ \ \__\
\|_______|\|__|\|__|\|_______|\|__| \|__| \|_______|\|__|\|__| \|_______|\|_______| \|__|

View File

@@ -10,7 +10,6 @@
<encoder>
<pattern>%red(%d{yyyy-MM-dd HH:mm:ss}) %boldMagenta([%logger]) %highlight(%-5level) - %msg%n</pattern>
<!--如果线上log日志出现中文乱码,下面这句有关编码设置的要删除或注释掉,原因不明-->
<charset>UTF-8</charset>
</encoder>
</appender>

View File

@@ -61,7 +61,7 @@ public class LiverFollower extends SpringBootPlugin {
FileCache fileCache = plugin.getFileCache(HotModuleConfig.getFullFilePath());
focusLive = (Integer)fileCache.get("LiverFollower", "focusLive")==1;
//focusBarrage = (Integer)fileCache.get("LiverFollower", "focusBarrage")==1;
checkTime = Integer.toUnsignedLong((Integer) fileCache.get("LiverFollower", "checkTime"));
checkTime = Long.parseLong(fileCache.get("LiverFollower", "checkTime").toString());
focusRecord = (Integer)fileCache.get("LiverFollower", "focusRecord")==1;
checkTime = (Integer)fileCache.get("LiverFollower", "checkTime");
focusLivers = service.getFocusLivers();

View File

@@ -6,9 +6,9 @@
"LiverFollower":{
"checkTime":120000,
"focusRecord":1,
"focusLive":1,
"focusLive":0,
"focusBarrage":1
}
},
"updateTime":"2023-10-13 15:24:06"
}
}

View File

@@ -31,5 +31,5 @@
"CreeperConfig":true
}
},
"updateTime":"2023-10-13 15:23:06"
"updateTime":"2023-10-13 16:27:29"
}