2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 11:40:51 +08:00

修改日志输出以及体力时间bug

This commit is contained in:
ctrlcvs 2022-07-28 20:44:26 +08:00 committed by leiyilu
parent 6426468ff9
commit 02a86ca345
3 changed files with 4 additions and 5 deletions

View File

@ -33,7 +33,6 @@ export class atlas extends plugin {
render render
}) })
if (ret === true) { if (ret === true) {
console.log('ret true')
return true return true
} }
} }

View File

@ -149,7 +149,7 @@ export async function Note(e, {
} }
val.percentage = ((val.dq_time / 60 / 60 * 1 / time_cha) * 100 / 10).toFixed(0) * 10; val.percentage = ((val.dq_time / 60 / 60 * 1 / time_cha) * 100 / 10).toFixed(0) * 10;
let remainedDate = new Date(val.remained_time); let remainedDate = new Date(val.remained_time);
val.remained_time = moment(remainedDate).format("hh:mm"); val.remained_time = moment(remainedDate).format("HH:mm");
let Time_day = await dateTime_(remainedDate) let Time_day = await dateTime_(remainedDate)
if (moment(remainedDate).format("DD") != nowDay) { if (moment(remainedDate).format("DD") != nowDay) {
val.remained_mb2 = "明天" + Time_day + moment(remainedDate).format("hh:mm"); val.remained_mb2 = "明天" + Time_day + moment(remainedDate).format("hh:mm");

View File

@ -11,11 +11,11 @@ let index = {
} }
if (isV3) { if (isV3) {
index = await Data.importModule('/plugins/xiaoyao-cvs-plugin/adapter', 'index.js') index = await Data.importModule('/plugins/xiaoyao-cvs-plugin/adapter', 'index.js')
console.log(index)
} }
export const atlas = index.atlas || {} export const atlas = index.atlas || {}
Bot.logger.info(`--------------------------`)
console.log(`图鉴插件${currentVersion}初始化~`) Bot.logger.info(`图鉴插件${currentVersion}初始化~`)
Bot.logger.info(`--------------------------`)
setTimeout(async function() { setTimeout(async function() {
let msgStr = await redis.get('xiaoyao:restart-msg') let msgStr = await redis.get('xiaoyao:restart-msg')