fix(bridge): align admin panel field keys with backend adapter settings
Frontend sent remote_url/bot_token/webhook_url while the backend reads ws_url/token/listen_addr, so QQ adapters could never connect. Also add the missing bot_qq field and wire the webhook adapter's APIKey.
This commit is contained in:
1 parent
a58ec7325d
commit
9a3c77dbd3
2 files changed
+7
-6
No files matched your search
@@ -366,7 +366,7 @@ func loadAdaptersFromConfig(router *bridge.Router, cfg *bridge.BridgeConfig, orc
|
||||
case "discord":
|
||||
router.Register(bridgedc.New(bridgedc.Config{Name: ac.Name, Token: ac.Settings["token"]}))
|
||||
case "webhook":
|
||||
router.Register(bridgewh.New(bridgewh.Config{Name: ac.Name, ListenAddr: ac.Settings["listen_addr"]}))
|
||||
router.Register(bridgewh.New(bridgewh.Config{Name: ac.Name, ListenAddr: ac.Settings["listen_addr"], APIKey: ac.Settings["api_key"]}))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user