From b58a194c8a214e1fae680ae5929e61d94c685d30 Mon Sep 17 00:00:00 2001 From: "Wesley F. Young" Date: Mon, 12 Aug 2024 16:15:39 +0800 Subject: [PATCH] fix: constructor signature mismatch --- src/onebot/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/onebot/index.ts b/src/onebot/index.ts index 307f0abd..b3b5f60e 100644 --- a/src/onebot/index.ts +++ b/src/onebot/index.ts @@ -87,7 +87,7 @@ export class NapCatOneBot11Adapter { if (ob11Config.http.enablePost) { ob11Config.http.postUrls.forEach(url => { this.networkManager.registerAdapter(new OB11ActiveHttpAdapter( - url, ob11Config.token, this.core + url, ob11Config.token, this.core, this )); }); } @@ -116,7 +116,7 @@ export class NapCatOneBot11Adapter { 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)}`) + this.context.logger.log(`OneBot11 配置更改:${JSON.stringify(prev)} -> ${JSON.stringify(newConfig)}`); await this.reloadNetwork(prev, newConfig); }); } @@ -145,7 +145,7 @@ export class NapCatOneBot11Adapter { if (now.http.enablePost) { now.http.postUrls.forEach(url => { this.networkManager.registerAdapterAndOpen(new OB11ActiveHttpAdapter( - url, now.token, this.core + url, now.token, this.core, this )); }); } else { @@ -159,7 +159,7 @@ export class NapCatOneBot11Adapter { ); for (const url of added) { await this.networkManager.registerAdapterAndOpen(new OB11ActiveHttpAdapter( - url, now.token, this.core + url, now.token, this.core, this )); } }