feat: 彻底 扬了Old WebUi

This commit is contained in:
手瓜一十雪
2024-11-15 16:56:53 +08:00
parent aacc036d7a
commit 2cf86b8a6b
2 changed files with 6 additions and 19 deletions

View File

@@ -140,12 +140,12 @@ export class NapCatOneBot11Adapter {
await WebUiDataRuntime.setQQLoginUin(selfInfo.uin.toString());
await WebUiDataRuntime.setQQLoginStatus(true);
// await WebUiDataRuntime.setOnOB11ConfigChanged(async (newConfig: OB11Config) => {
// const prev = this.configLoader.configData;
// this.configLoader.save(newConfig);
// this.context.logger.log(`OneBot11 配置更改:${JSON.stringify(prev)} -> ${JSON.stringify(newConfig)}`);
// await this.reloadNetwork(prev, newConfig);
// });
await WebUiDataRuntime.setOnOB11ConfigChanged(async (newConfig) => {
const prev = this.configLoader.configData;
this.configLoader.save(newConfig);
this.context.logger.log(`OneBot11 配置更改:${JSON.stringify(prev)} -> ${JSON.stringify(newConfig)}`);
//await this.reloadNetwork(prev, newConfig);
});
}
initRecentContactListener() {