refactor: 回滚

This commit is contained in:
手瓜一十雪
2024-07-26 10:58:56 +08:00
parent a7b83b2fdf
commit 0e22e6b8f9
4 changed files with 24 additions and 10 deletions

View File

@@ -130,6 +130,10 @@ export class NTQQMsgApi {
});
return retMsg;
}
static async getMsgUniqueEx(){
let msgId = await NTQQMsgApi.getMsgUnique(await NTQQMsgApi.getServerTime());
return msgId;
}
static async getMsgUnique(time: string) {
return napCatCore.session.getMsgService().getMsgUniqueId(time);
}

View File

@@ -249,6 +249,7 @@ export class NapCatCore {
stat.last_message_time = Math.floor(Date.now() / 1000);
};
msgListener.onRecvMsg = (msgList: RawMessage[]) => {
// console.log(JSON.stringify(msgList[0],null,2));
stat.packet_received += 1;
stat.message_received += msgList.length;
stat.last_message_time = Math.floor(Date.now() / 1000);

View File

@@ -21,7 +21,7 @@ export interface NodeIKernelMsgService {
getAutoReplyTextList(...args: unknown[]): unknown;
getOnLineDev(): Promise<any>;
getOnLineDev(): void;
kickOffLine(DevInfo: Object): unknown;
@@ -115,7 +115,7 @@ export interface NodeIKernelMsgService {
addLocalTofuRecordMsg(...args: unknown[]): unknown;
addLocalRecordMsg(...args: unknown[]): unknown;
addLocalRecordMsg(Peer: Peer, msgId: string, rawMessage: RawMessage, attr: Array<any> | number, front: boolean): Promise<unknown>;
deleteMsg(...args: unknown[]): unknown;