mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 04:45:46 +00:00
chore: 移除废弃日志
This commit is contained in:
parent
a3ee8672ed
commit
c84c1f2e96
@ -22,7 +22,7 @@ export class LimitedHashTable<K, V> {
|
||||
this.keyToValue.set(key, value);
|
||||
this.valueToKey.set(value, key);
|
||||
while (this.keyToValue.size !== this.valueToKey.size) {
|
||||
console.log('keyToValue.size !== valueToKey.size Error Atom');
|
||||
//console.log('keyToValue.size !== valueToKey.size Error Atom');
|
||||
this.keyToValue.clear();
|
||||
this.valueToKey.clear();
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ export class NapCatCore {
|
||||
async initNapCatCoreListeners() {
|
||||
const msgListener = new MsgListener();
|
||||
msgListener.onRecvMsg = (msg) => {
|
||||
console.log('RecvMsg', msg);
|
||||
//console.log('RecvMsg', msg);
|
||||
};
|
||||
//await sleep(2500);
|
||||
this.context.session.getMsgService().addKernelMsgListener(
|
||||
|
@ -85,7 +85,7 @@ export class NapCatOneBot11Adapter {
|
||||
await this.networkManager.registerAllActions(actions);
|
||||
await this.networkManager.openAllAdapters();
|
||||
await this.initMsgListener();
|
||||
//未对shell版本兼容
|
||||
// 未对shell版本兼容
|
||||
// Mlikiowa V2.0.0 Refactor Todo
|
||||
WebUiDataRuntime.setQQLoginUin(selfInfo.uin.toString());
|
||||
WebUiDataRuntime.setQQLoginStatus(true);
|
||||
|
@ -32,14 +32,14 @@ export class OB11NetworkManager {
|
||||
}
|
||||
|
||||
async emitEvent(event: OB11EmitEventContent) {
|
||||
console.log('adapters', this.adapters.length);
|
||||
//console.log('adapters', this.adapters.length);
|
||||
return Promise.all(this.adapters.map(adapter => adapter.onEvent(event)));
|
||||
}
|
||||
|
||||
async registerAdapter(adapter: IOB11NetworkAdapter) {
|
||||
console.log('Registering adapter:', adapter);
|
||||
//console.log('Registering adapter:', adapter);
|
||||
this.adapters.push(adapter);
|
||||
console.log('Current adapters:', this.adapters.length);
|
||||
//console.log('Current adapters:', this.adapters.length);
|
||||
}
|
||||
|
||||
async closeSomeAdapters(adapters: IOB11NetworkAdapter[]) {
|
||||
@ -48,10 +48,10 @@ export class OB11NetworkManager {
|
||||
}
|
||||
|
||||
async closeAllAdapters() {
|
||||
console.log('Closing all adapters');
|
||||
//console.log('Closing all adapters');
|
||||
await Promise.all(this.adapters.map(adapter => adapter.close()));
|
||||
this.adapters = [];
|
||||
console.log('All adapters closed. Current adapters:', this.adapters.length);
|
||||
//console.log('All adapters closed. Current adapters:', this.adapters.length);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user