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) }