fix
This commit is contained in:
1 parent
19e8d20e40
commit
43151af362
3 files changed
+4
-6
No files matched your search
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user