From 48b389ebe305d6b298c51f77b9b889d00fae1446 Mon Sep 17 00:00:00 2001 From: Drsanwujiang Date: Fri, 6 Sep 2024 11:02:41 +0800 Subject: [PATCH] Fix bug: active HTTP adapter --- src/onebot/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/onebot/index.ts b/src/onebot/index.ts index 4d9ec98c..ec40761e 100644 --- a/src/onebot/index.ts +++ b/src/onebot/index.ts @@ -98,7 +98,7 @@ export class NapCatOneBot11Adapter { if (ob11Config.http.enablePost) { ob11Config.http.postUrls.forEach(url => { this.networkManager.registerAdapter(new OB11ActiveHttpAdapter( - url, ob11Config.token, this.core, this, + url, ob11Config.http.secret, this.core, this, )); }); } @@ -168,7 +168,7 @@ export class NapCatOneBot11Adapter { if (now.http.enablePost) { now.http.postUrls.forEach(url => { this.networkManager.registerAdapterAndOpen(new OB11ActiveHttpAdapter( - url, now.token, this.core, this, + url, now.http.secret, this.core, this, )); }); } else { @@ -182,7 +182,7 @@ export class NapCatOneBot11Adapter { ); for (const url of added) { await this.networkManager.registerAdapterAndOpen(new OB11ActiveHttpAdapter( - url, now.token, this.core, this, + url, now.http.secret, this.core, this, )); } }