mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
refactor: 回滚
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user