From 42793f9bba166e6cc347612fdd3a05b5cb898f65 Mon Sep 17 00:00:00 2001 From: AskaEth Date: Mon, 22 Jun 2026 21:32:10 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20ethend=20QQ=E2=86=92OBv11=20+=20config?= =?UTF-8?q?.js=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E5=90=8C=E6=AD=A5=20+?= =?UTF-8?q?=20curQQ=E5=8F=98=E9=87=8F=E9=87=8D=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ethend: QQ_BOT_PORT→OBV11_BOT_PORT, QQ_ADMIN_UID→OBV11_ADMIN_UID - ethend UI: QQ→OBv11 标签, 企鹅图标→🔷, 对话框文案 - platform-bridge: curQQ→curAdapter 变量名 Co-Authored-By: Claude --- backend/platform-bridge/cmd/main.go | 6 +++--- ethend/public/index.html | 8 ++++---- ethend/src/config.js | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/backend/platform-bridge/cmd/main.go b/backend/platform-bridge/cmd/main.go index 210de88..6419f0d 100644 --- a/backend/platform-bridge/cmd/main.go +++ b/backend/platform-bridge/cmd/main.go @@ -438,16 +438,16 @@ func startOBv11Readers(router *bridge.PlatformRouter) { if err != nil { continue } - curQQ, ok := cur.(*qqadapter.Adapter) + curAdapter, ok := cur.(*qqadapter.Adapter) if !ok { continue } var sendErr error switch messageType { case "private": - sendErr = curQQ.SendMessage("private", userID, 0, rm.Content) + sendErr = curAdapter.SendMessage("private", userID, 0, rm.Content) case "group": - sendErr = curQQ.SendMessage("group", 0, groupID, rm.Content) + sendErr = curAdapter.SendMessage("group", 0, groupID, rm.Content) } if sendErr != nil { fmt.Printf("[qq:%s] send msg error: %v\n", adapterKey, sendErr) diff --git a/ethend/public/index.html b/ethend/public/index.html index 41a523f..bf6694e 100644 --- a/ethend/public/index.html +++ b/ethend/public/index.html @@ -4270,7 +4270,7 @@ var PLATFORM_FIELDS = { ] }; -var PLATFORM_ICONS = { qq: '🐧', telegram: '✈️', webhook: '🪝', wechat: '💚', feishu: '🕊️', discord: '🎮' }; +var PLATFORM_ICONS = { qq: '🔷', telegram: '✈️', webhook: '🪝', wechat: '💚', feishu: '🕊️', discord: '🎮' }; var PLATFORM_LABELS = { qq: 'QQ', telegram: 'Telegram', webhook: 'Webhook', wechat: 'WeChat', feishu: 'Feishu', discord: 'Discord' }; // 已完整实现的平台 (非桩代码) var PLATFORM_REAL = { qq: true, telegram: true, webhook: true }; @@ -4454,11 +4454,11 @@ function showNewQQConfigDialog() { var defaultName = 'qq-' + Date.now().toString(36); var panel = document.getElementById('panel-chatPlatforms'); panel.innerHTML = - '
🐧 新建 QQ 配置' + + '
🐧 新建 OBv11 配置' + '
' + '
' + '
' + - '
' + + '
' + '
' + '