新增 初始化 Info.json 警告

This commit is contained in:
Suwings 2021-11-10 17:17:52 +08:00
parent 11b08d3c2d
commit 018f349f19
2 changed files with 5 additions and 2 deletions

View File

@ -24,7 +24,11 @@ module.exports.init = () => {
};
module.exports.load = () => {
dataModel.load();
try {
dataModel.load();
} catch (error) {
MCSERVER.error("初始化 core/info.json 文件失败,请删除此文件重启面板进行恢复", error);
}
counterMask = dataModel.counterData;
if (dataModel.reloadMonth == undefined) dataModel.reloadMonth = new Date().getMonth() + 2; //下个月
dataModel.save();

View File

@ -18,7 +18,6 @@
<link href="common/xterm.css" rel="stylesheet" />
<script type="text/javascript" src="common/xterm.js"></script>
<link href="./favicon.ico" rel="shortcut icon" />
<!--[if lt IE 9]>
<div id="Not_" class="show-ui" style="height: 40px; background-color: rgb(221, 79, 67); text-align: center; line-height: 40px; color: white">