feat: errorMsg opt

This commit is contained in:
手瓜一十雪 2024-10-13 10:57:03 +08:00
parent a8534974fe
commit a0c49d5f7f
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

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