From b3b946e91dce952049a22ea51af54e2214920d7b 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: Thu, 30 Oct 2025 15:17:20 +0800 Subject: [PATCH] Revert "Comment out packet logging in napcat and shell" This reverts commit 5da15868112cb266c0f1fe9ccf6d3bf7c7e67db4. --- src/framework/napcat.ts | 6 +++--- src/shell/base.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/framework/napcat.ts b/src/framework/napcat.ts index e83ce425..1f85a65d 100644 --- a/src/framework/napcat.ts +++ b/src/framework/napcat.ts @@ -39,9 +39,9 @@ export async function NCoreInitFramework( const basicInfoWrapper = new QQBasicInfoWrapper({ logger }); const wrapper = loadQQWrapper(basicInfoWrapper.getFullQQVersion()); const nativePacketHandler = new NativePacketHandler({ logger }); // 初始化 NativePacketHandler 用于后续使用 - // nativePacketHandler.onAll((packet) => { - // console.log('[Packet]', packet.uin, packet.cmd, packet.hex_data); - // }); + nativePacketHandler.onAll((packet) => { + console.log('[Packet]', packet.uin, packet.cmd, packet.hex_data); + }); await nativePacketHandler.init(basicInfoWrapper.getFullQQVersion()); // 在 init 之后注册监听器 diff --git a/src/shell/base.ts b/src/shell/base.ts index c6e66b55..1d0238fe 100644 --- a/src/shell/base.ts +++ b/src/shell/base.ts @@ -322,9 +322,9 @@ export async function NCoreInitShell() { const wrapper = loadQQWrapper(basicInfoWrapper.getFullQQVersion()); const nativePacketHandler = new NativePacketHandler({ logger }); // 初始化 NativePacketHandler 用于后续使用 - // nativePacketHandler.onAll((packet) => { - // console.log('[Packet]', packet.uin, packet.cmd, packet.hex_data); - // }); + nativePacketHandler.onAll((packet) => { + console.log('[Packet]', packet.uin, packet.cmd, packet.hex_data); + }); await nativePacketHandler.init(basicInfoWrapper.getFullQQVersion()); const o3Service = wrapper.NodeIO3MiscService.get();