From 02a86ca34568fed21fc03324686eabf184c54d53 Mon Sep 17 00:00:00 2001 From: ctrlcvs <1509167646@qq.com> Date: Thu, 28 Jul 2022 20:44:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E4=BB=A5=E5=8F=8A=E4=BD=93=E5=8A=9B=E6=97=B6=E9=97=B4?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adapter/index.js | 1 - apps/Note.js | 2 +- index.js | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/adapter/index.js b/adapter/index.js index a711ebe..44f5023 100644 --- a/adapter/index.js +++ b/adapter/index.js @@ -33,7 +33,6 @@ export class atlas extends plugin { render }) if (ret === true) { - console.log('ret true') return true } } diff --git a/apps/Note.js b/apps/Note.js index a60a080..745e24f 100644 --- a/apps/Note.js +++ b/apps/Note.js @@ -149,7 +149,7 @@ export async function Note(e, { } val.percentage = ((val.dq_time / 60 / 60 * 1 / time_cha) * 100 / 10).toFixed(0) * 10; 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) if (moment(remainedDate).format("DD") != nowDay) { val.remained_mb2 = "明天" + Time_day + moment(remainedDate).format("hh:mm"); diff --git a/index.js b/index.js index b9f961f..9cf098a 100644 --- a/index.js +++ b/index.js @@ -11,11 +11,11 @@ let index = { } if (isV3) { index = await Data.importModule('/plugins/xiaoyao-cvs-plugin/adapter', 'index.js') - console.log(index) } export const atlas = index.atlas || {} - -console.log(`图鉴插件${currentVersion}初始化~`) +Bot.logger.info(`--------------------------`) +Bot.logger.info(`图鉴插件${currentVersion}初始化~`) +Bot.logger.info(`--------------------------`) setTimeout(async function() { let msgStr = await redis.get('xiaoyao:restart-msg')