From 985f2e64360278cbb42c38f1cd3b474770e78b38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Tue, 25 Jun 2024 17:24:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=98=E5=8E=9F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot11/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/onebot11/main.ts b/src/onebot11/main.ts index 4c280e27..de0c81fd 100644 --- a/src/onebot11/main.ts +++ b/src/onebot11/main.ts @@ -209,8 +209,8 @@ export class NapCatOnebot11 { //console.log('ob11 onRecvMsg', JSON.stringify(msg, null, 2)); // logDebug('收到消息', msg); for (const m of msg) { - // try: 减掉3s 试图修复消息半天收不到 - if (this.bootTime - 3 > parseInt(m.msgTime)) { + // try: 减掉3s 试图修复消息半天收不到(不减了不减了 会出大问题) + if (this.bootTime > parseInt(m.msgTime)) { logDebug(`消息时间${m.msgTime}早于启动时间${this.bootTime},忽略上报`); continue; }