mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat: errorMsg opt
This commit is contained in:
src/core
@@ -96,10 +96,12 @@ export class NTQQPacketApi {
|
|||||||
return oidb_packet;
|
return oidb_packet;
|
||||||
}
|
}
|
||||||
async buildStatusPacket(uin: number) {
|
async buildStatusPacket(uin: number) {
|
||||||
|
|
||||||
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: [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,
|
||||||
|
@@ -5,6 +5,6 @@ export const OidbSvcTrpcTcpBase = {
|
|||||||
command: ProtoField(1, ScalarType.UINT32),
|
command: ProtoField(1, ScalarType.UINT32),
|
||||||
subCommand: ProtoField(2, ScalarType.UINT32),
|
subCommand: ProtoField(2, ScalarType.UINT32),
|
||||||
body: ProtoField(4, ScalarType.BYTES),
|
body: ProtoField(4, ScalarType.BYTES),
|
||||||
errorMsg: ProtoField(5, ScalarType.STRING),
|
errorMsg: ProtoField(5, ScalarType.STRING, true),
|
||||||
isReserved: ProtoField(12, ScalarType.UINT32)
|
isReserved: ProtoField(12, ScalarType.UINT32)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user