This commit is contained in:
手瓜一十雪 2024-10-13 11:58:08 +08:00
parent 3068f9ee3d
commit 274c956f16
3 changed files with 4 additions and 6 deletions

View File

@ -85,7 +85,7 @@ export class NTQQPacketApi {
agentType: 2 agentType: 2
} }
}, },
downloadRKeyReq: [10, 20, 2], downloadRKeyReq: [[{ key: 10 }, { key: 20 }], { key: 2 }],
}); });
let oidb_packet = new NapProtoMsg(OidbSvcTrpcTcpBase).encode({ let oidb_packet = new NapProtoMsg(OidbSvcTrpcTcpBase).encode({
command: 0x9067, command: 0x9067,
@ -99,9 +99,8 @@ export class NTQQPacketApi {
let oidb_0xfe1_2 = new NapProtoMsg(OidbSvcTrpcTcp0XFE1_2).encode({ let oidb_0xfe1_2 = new NapProtoMsg(OidbSvcTrpcTcp0XFE1_2).encode({
uin: uin, uin: uin,
key: [27372] key: [{ key: 27372 }]
}); });
console.log(oidb_0xfe1_2);
let oidb_packet = new NapProtoMsg(OidbSvcTrpcTcpBase).encode({ let oidb_packet = new NapProtoMsg(OidbSvcTrpcTcpBase).encode({
command: 0xfe1, command: 0xfe1,
subCommand: 2, subCommand: 2,

View File

@ -122,7 +122,7 @@ export class NapProtoMsg<T extends ProtoMessageType> {
no: field.no, no: field.no,
name: key, name: key,
kind: 'message', kind: 'message',
repeat: field.repeat ? RepeatType.PACKED : RepeatType.NO, repeat: field.repeat ? RepeatType.UNPACKED : RepeatType.NO,
T: () => rt, T: () => rt,
}; };
} }

View File

@ -2,8 +2,7 @@ import {ScalarType} from "@protobuf-ts/runtime";
import {ProtoField} from "../NapProto"; import {ProtoField} from "../NapProto";
export const OidbSvcTrpcTcp0XFE1_2 = { export const OidbSvcTrpcTcp0XFE1_2 = {
uid: ProtoField(1, ScalarType.STRING, true), uin: ProtoField(1, ScalarType.UINT32),
uin: ProtoField(2, ScalarType.UINT32),
key: ProtoField(3, () => OidbSvcTrpcTcp0XFE1_2Key, false, true), key: ProtoField(3, () => OidbSvcTrpcTcp0XFE1_2Key, false, true),
} }