From a0c49d5f7fce78f6fc345a952b70f88591abab65 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: Sun, 13 Oct 2024 10:57:03 +0800 Subject: [PATCH] feat: errorMsg opt --- src/core/apis/packet.ts | 2 ++ src/core/proto/oidb/OidbBase.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/apis/packet.ts b/src/core/apis/packet.ts index 94224932..b0e679b7 100644 --- a/src/core/apis/packet.ts +++ b/src/core/apis/packet.ts @@ -96,10 +96,12 @@ export class NTQQPacketApi { return oidb_packet; } async buildStatusPacket(uin: number) { + let oidb_0xfe1_2 = new NapProtoMsg(OidbSvcTrpcTcp0XFE1_2).encode({ uin: uin, key: [27372] }); + console.log(oidb_0xfe1_2); let oidb_packet = new NapProtoMsg(OidbSvcTrpcTcpBase).encode({ command: 0xfe1, subCommand: 2, diff --git a/src/core/proto/oidb/OidbBase.ts b/src/core/proto/oidb/OidbBase.ts index 67162a71..c94636ad 100644 --- a/src/core/proto/oidb/OidbBase.ts +++ b/src/core/proto/oidb/OidbBase.ts @@ -5,6 +5,6 @@ export const OidbSvcTrpcTcpBase = { command: ProtoField(1, ScalarType.UINT32), subCommand: ProtoField(2, ScalarType.UINT32), body: ProtoField(4, ScalarType.BYTES), - errorMsg: ProtoField(5, ScalarType.STRING), + errorMsg: ProtoField(5, ScalarType.STRING, true), isReserved: ProtoField(12, ScalarType.UINT32) }