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%'