mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 21:09:23 +00:00
fix
This commit is contained in:
parent
3068f9ee3d
commit
274c956f16
@ -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,
|
||||
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
@ -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),
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user