From 5f73d6a9136d8335012c750e37b723322d192597 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: Wed, 18 Sep 2024 11:01:12 +0800 Subject: [PATCH] feat: reportAmgomWeather a1 rnm tx --- src/core/services/NodeIO3MiscService.ts | 2 ++ src/shell/napcat.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/services/NodeIO3MiscService.ts b/src/core/services/NodeIO3MiscService.ts index 95c59d59..3bfd4c32 100644 --- a/src/core/services/NodeIO3MiscService.ts +++ b/src/core/services/NodeIO3MiscService.ts @@ -6,4 +6,6 @@ export interface NodeIO3MiscService { addO3MiscListener(listeners: NodeIO3MiscListener): number; setAmgomDataPiece(appid: string, dataPiece: Uint8Array): void; + + reportAmgomWeather(type: string, uk2: string, arg: Array): void; } diff --git a/src/shell/napcat.ts b/src/shell/napcat.ts index de259d16..6ef11355 100644 --- a/src/shell/napcat.ts +++ b/src/shell/napcat.ts @@ -118,7 +118,8 @@ export async function NCoreInitShell() { quickLoginUin = ''; } } - + let dataTimestape = new Date().getTime().toString(); + o3Service.reportAmgomWeather('login', 'a1', [dataTimestape, '0', '0']); const selfInfo = await new Promise((resolve) => { const loginListener = new NodeIKernelLoginListener(); let isLogined = false;