This commit is contained in:
pk5ls20 2024-10-20 23:52:36 +08:00
parent 0e8b416f6d
commit 014f0758f5
No known key found for this signature in database
GPG Key ID: 6370ED7A169F493A

View File

@ -304,10 +304,10 @@ export class NapCatOneBot11Adapter {
}, },
m.msgId, m.msgId,
); );
if (m.sourceType == MsgSourceType.K_DOWN_SOURCETYPE_AIOINNER) { // if (m.sourceType == MsgSourceType.K_DOWN_SOURCETYPE_AIOINNER) {
await this.emitMsg(m) await this.emitMsg(m)
.catch(e => this.context.logger.logError.bind(this.context.logger)('处理消息失败', e)); .catch(e => this.context.logger.logError.bind(this.context.logger)('处理消息失败', e));
} // }
} }
}; };
@ -575,7 +575,7 @@ export class NapCatOneBot11Adapter {
// } // }
this.networkManager.emitEvent(ob11Msg); this.networkManager.emitEvent(ob11Msg);
}).catch(e => this.context.logger.logError.bind(this.context.logger)('constructMessage error: ', e)); }).catch(e => this.context.logger.logError.bind(this.context.logger)('constructMessage error: ', e));
this.apis.GroupApi.parseGroupEvent(message).then(groupEvent => { this.apis.GroupApi.parseGroupEvent(message).then(groupEvent => {
if (groupEvent) { if (groupEvent) {
// log("post group event", groupEvent); // log("post group event", groupEvent);