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

View File

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

View File

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