From b66a1de59ab1238c82123211f1ffd6c8b8371808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B4=E5=A4=A9?= Date: Thu, 26 Mar 2026 04:11:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BE=AE=E4=BF=A1=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=89=8D=E7=AB=AF=E4=B8=8D=E5=86=8D=E4=BC=A0?= =?UTF-8?q?=20OpenClaw=20=E7=89=88=E6=9C=AC=E5=8F=B7=EF=BC=8C=E7=94=B1?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E8=87=AA=E5=8A=A8=E6=A3=80=E6=B5=8B=20+=20ab?= =?UTF-8?q?out.js=20getLang=20=E5=AF=BC=E5=85=A5=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - channels.js: 两处 runChannelAction 调用均传 null,后端自动检测 OpenClaw 版本决定用 v1.0.3 或 latest - about.js: 补全 getLang 导入(BNB 钱包条件显示依赖) --- src/pages/about.js | 7 ++++++- src/pages/channels.js | 11 ++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/pages/about.js b/src/pages/about.js index b571578..dac668a 100644 --- a/src/pages/about.js +++ b/src/pages/about.js @@ -7,7 +7,7 @@ import { toast } from '../components/toast.js' import { showUpgradeModal, showConfirm } from '../components/modal.js' import { setUpgrading } from '../lib/app-state.js' import { icon, statusIcon } from '../lib/icons.js' -import { t } from '../lib/i18n.js' +import { t, getLang } from '../lib/i18n.js' export async function render() { const page = document.createElement('div') @@ -639,6 +639,11 @@ function renderCompany(page) {
${t('about.companyDesc')}
+ ${getLang() === 'zh-CN' ? `
+ + 请作者喝杯咖啡 (BNB Chain) + 0xbdd7ebdf2b30d873e556799711021c6671ffe88f +
` : ''} ` } diff --git a/src/pages/channels.js b/src/pages/channels.js index ad01f8c..df60c8d 100644 --- a/src/pages/channels.js +++ b/src/pages/channels.js @@ -1449,15 +1449,8 @@ async function openConfigDialog(pid, page, state, accountId) { if (progressText) progressText.textContent = `${pct}%` }) - // 自动 pin 插件版本到用户的 OpenClaw 版本(仅 install 动作) - let actionVersion = null - if (actionId === 'install') { - try { - const vInfo = await api.getVersionInfo() - if (vInfo?.current) actionVersion = vInfo.current.split('-')[0] - } catch {} - } - const output = await api.runChannelAction(pid, actionId, actionVersion) + // runChannelAction 的版本由后端自动检测(微信/QQ 版本号独立于 OpenClaw) + const output = await api.runChannelAction(pid, actionId, null) _flushQr() // 命令结束后刷新残留 QR 缓冲 if (progressBar) progressBar.style.width = '100%' if (progressText) progressText.textContent = '100%'