feat & fix: feat proto & revert NapProto changes

This commit is contained in:
pk5ls20
2024-10-13 16:13:34 +08:00
parent 2501d7d22a
commit dd5f936cfc
6 changed files with 19 additions and 17 deletions

View File

@@ -55,8 +55,8 @@ export class NTQQGroupApi {
);
}
async sendPocketRkey() {
let hex = '08E7A00210CA01221D0A130A05080110CA011206A80602B006011A0208022206080A081408022A006001';
let ret = await this.core.apis.PacketApi.sendPacket('OidbSvcTrpcTcp.0x9067_202', hex, true);
let u8 = await this.core.apis.PacketApi.buildRkeyPacket()
let ret = await this.core.apis.PacketApi.sendPacket('OidbSvcTrpcTcp.0x9067_202', Buffer.from(u8).toString('hex'), true);
//console.log('ret: ', ret);
}
async sendPacketPoke(group: number, peer: number) {

View File

@@ -76,18 +76,20 @@ export class NTQQPacketApi {
reqHead: {
common: {
requestId: 1,
command: 2
command: 202
},
scene: {
requestType: 2,
businessType: 1,
sceneType: 0
},
clent: {
client: {
agentType: 2
}
},
downloadRKeyReq: [[{ key: 10 }, { key: 20 }], { key: 2 }],
downloadRKeyReq: {
key: [10, 20, 2]
},
});
let oidb_packet = new NapProtoMsg(OidbSvcTrpcTcpBase).encode({
command: 0x9067,
@@ -149,4 +151,4 @@ export class NTQQPacketApi {
}
return { status: status, ext_status: 0 };
}
}
}