From 2f6dfe51f5a58c93279146e8e57cd9802279ca6d 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, 14 Nov 2024 13:43:39 +0800 Subject: [PATCH] fix: error --- src/shell/napcat.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/shell/napcat.ts b/src/shell/napcat.ts index 73c8ac95..af883e20 100644 --- a/src/shell/napcat.ts +++ b/src/shell/napcat.ts @@ -114,10 +114,7 @@ async function handleLogin( logger: LogWrapper, pathWrapper: NapCatPathWrapper, quickLoginUin: string | undefined, - historyLoginList: any[], - basicInfoWrapper: QQBasicInfoWrapper, - o3Service: any, - dataTimestape: string + historyLoginList: any[] ): Promise { return new Promise((resolve) => { const loginListener = new NodeIKernelLoginListener(); @@ -299,7 +296,7 @@ export async function NCoreInitShell() { const dataTimestape = new Date().getTime().toString(); o3Service.reportAmgomWeather('login', 'a1', [dataTimestape, '0', '0']); - const selfInfo = await handleLogin(loginService, logger, pathWrapper, quickLoginUin, historyLoginList, basicInfoWrapper, o3Service, dataTimestape); + const selfInfo = await handleLogin(loginService, logger, pathWrapper, quickLoginUin, historyLoginList); const amgomDataPiece = 'eb1fd6ac257461580dc7438eb099f23aae04ca679f4d88f53072dc56e3bb1129'; o3Service.setAmgomDataPiece(basicInfoWrapper.QQVersionAppid, new Uint8Array(Buffer.from(amgomDataPiece, 'hex')));