sync: 同步总仓库 luoguang/monkey-ai weiyuan@bfdfb339 的 web/ 改动

同步基准:总仓库 a2ca13cb(= 本仓库初始导入 d8f3aee2)
范围:a2ca13cb..bfdfb339 中触及 web/ 的提交(不含 web/.claude/settings.local.json)

- 8490ac02 feat(aliyun): integrate Wan 3 and Qwen Image models
- 2aff08ec perf(analytics): 运营看板概览改读汇总表,首屏从 19s 降到 0.4s
- dc69335e feat(experience): 体验中心图像/视频创作升级(能力 schema、估价、新创作台)
- b059c657 fix(org): 下线 /org/create 自助加入企业页与 POST /api/org/join
- 4fcf47e6 fix(i18n): 修复中/英/韩/繁体多语言错乱,补齐日/越/泰译文
- e4c301d5 fix: merge enterprise task record date filters
- c9369b95 feat: expose enterprise image and video task records
- a410fee5 feat(claude): 无断点请求自动注入 cache_control 断点(方案 2)
- 521b3376 feat(claude): 缓存命中率优化——上游粘性路由 + 缓存时长强制改写
- 73b615dd feat(pricing): 企业成员不论登录身份均按所属企业等级计价与扣费
- f73f55c3 feat(client): 新增 WeyAi 版本说明管理与公开读取接口
- 8cdf1994 fix(topup): reset amount when switching from PayPal
- 93a4ac34 feat(baidu): configure Seedance liveness header by channel
- cb1818c5 fix(weyai): 按评审修正内容清理竞态、默认适用端与中文退回(M21)
- 04214d83 feat(weyai): WeyAi 内容管理与客户端内容接口(M21 第二部分)
- e3c4a57c feat(weyai): 设置页新增 WeyAi 页签与内容专用 COS 桶(M21 第一部分)
- b5ee8e70 fix(auth): 会话角色/状态以 DB 为准,修复提升管理员后管理接口报权限不足
- e4618fc2 fix: 修复企业看板日志聚合死循环导致 CPU 打满,并降低看板查询开销
- 584aad52 style(web): 个人中心侧边栏按 prettier 换行
- b8d87064 fix: 小程序教程隐藏充值后保留原步骤编号,企业充值判断直接用 isMiniProgramWebView
- eee7f5b2 fix: 小程序里企业首页不落到充值页,隐藏钱包入口与教程充值步骤
- 8b254d49 fix: 小程序里隐藏企业充值入口与页面
- a67661b4 fix(web): 小程序里个人中心默认页跳过充值和发票,避免来回跳转
- cff6c543 feat(web): WeyAi 小程序里打开个人中心时不出现充值和开票
- c6c99eb6 feat(billing): Claude 全部缓存写入统一按 1h 倍率计费
- 0699d1bf fix(web): 小程序 web-view 里注册页同样只显示站内方式
- 04853331 feat(web): WeyAi 小程序 web-view 里登录页只显示站内登录方式
This commit is contained in:
qiubaishen
2026-11-10 11:05:34 +08:00
parent d8f3aee261
commit 6160a23117
275 changed files with 38656 additions and 7694 deletions
@@ -109,7 +109,12 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
for (const config of configs) {
const res = await API.put('/api/option/', config);
if (!res.data.success) {
throw new Error(`保存 ${config.key} 失败: ${res.data.message}`);
throw new Error(
t('保存 {{key}} 失败:{{message}}', {
key: config.key,
message: res.data.message,
}),
);
}
}
@@ -126,13 +131,13 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
<>
<Title heading={5}>{t('微信支付配置')}</Title>
<Text type='tertiary'>
配置微信支付 Native(扫码)和 H5 支付方式。请前往{' '}
{t('配置微信支付 Native(扫码)和 H5 支付方式。请前往')}{' '}
<a
href='https://pay.weixin.qq.com'
target='_blank'
rel='noopener noreferrer'
>{t('微信支付商户平台')}</a>{' '}
获取相关配置信息。
{t('获取相关配置信息。')}
</Text>
<Divider margin='12px' />
@@ -183,14 +188,14 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
field='WechatMchId'
label={t('商户号 (Mch ID)')}
placeholder={t('请输入微信支付商户号')}
rules={[{ required: true, message: '请输入商户号' }]}
rules={[{ required: true, message: t('请输入商户号') }]}
/>
<Form.Input
field='WechatAppId'
label={t('应用 ID (App ID)')}
placeholder={t('请输入微信应用 ID')}
rules={[{ required: true, message: '请输入应用 ID' }]}
rules={[{ required: true, message: t('请输入应用 ID') }]}
/>
<Form.Input
@@ -198,13 +203,13 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
label={t('APIv3 密钥')}
placeholder={
options.WechatAPIv3Key === '***ALREADY_SET***'
? '已设置(留空不修改,填写新内容则更新)'
: '请输入 APIv3 密钥'
? t('已设置(留空不修改,填写新内容则更新)')
: t('请输入 APIv3 密钥')
}
mode='password'
extraText={
options.WechatAPIv3Key === '***ALREADY_SET***'
? '✓ 已配置 APIv3 密钥(留空则保持不变)'
? t('✓ 已配置 APIv3 密钥(留空则保持不变)')
: ''
}
/>
@@ -213,7 +218,7 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
field='WechatSerialNo'
label={t('证书序列号')}
placeholder={t('请输入证书序列号')}
rules={[{ required: true, message: '请输入证书序列号' }]}
rules={[{ required: true, message: t('请输入证书序列号') }]}
/>
<Form.TextArea
@@ -221,14 +226,14 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
label={t('商户私钥')}
placeholder={
options.WechatPrivateKey === '***ALREADY_SET***'
? '已设置(留空不修改,填写新内容则更新)'
: '请粘贴完整的 PEM 格式私钥内容(包含 -----BEGIN PRIVATE KEY----- 等)'
? t('已设置(留空不修改,填写新内容则更新)')
: t('请粘贴完整的 PEM 格式私钥内容(包含 -----BEGIN PRIVATE KEY----- 等)')
}
rows={6}
extraText={
options.WechatPrivateKey === '***ALREADY_SET***'
? '✓ 已配置商户私钥(留空则保持不变)'
: '支持直接粘贴 PEM 格式内容或填写文件路径'
? t('✓ 已配置商户私钥(留空则保持不变)')
: t('支持直接粘贴 PEM 格式内容或填写文件路径')
}
/>
@@ -236,21 +241,22 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
<Title heading={6} style={{ marginTop: 16, marginBottom: 8 }}>{t('公钥模式(2024年新商户必选)')}</Title>
<Text type='tertiary' style={{ display: 'block', marginBottom: 12 }}>
2024年后注册的微信支付商户默认使用公钥模式。如果初始化失败提示"无可用的平台证书",
请从商户平台下载微信支付公钥并启用此模式。
{t(
'2024年后注册的微信支付商户默认使用公钥模式。如果初始化失败提示"无可用的平台证书",请从商户平台下载微信支付公钥并启用此模式。',
)}
</Text>
<Form.Switch
field='WechatUsePublicKey'
label={t('启用公钥模式')}
extraText='2024年新商户必须开启此选项'
extraText={t('2024年新商户必须开启此选项')}
/>
<Form.Input
field='WechatPublicKeyID'
label={t('微信支付公钥 ID')}
placeholder='PUB_KEY_ID_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
extraText='从商户平台【API安全】→【微信支付公钥】获取,格式如 PUB_KEY_ID_xxx'
extraText={t('从商户平台【API安全】→【微信支付公钥】获取,格式如 PUB_KEY_ID_xxx')}
/>
<Form.TextArea
@@ -258,14 +264,14 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
label={t('微信支付公钥内容')}
placeholder={
options.WechatPublicKeyPEM === '***ALREADY_SET***'
? '已设置(留空不修改,填写新内容则更新)'
: '请粘贴完整的微信支付公钥 PEM 内容(包含 -----BEGIN PUBLIC KEY----- 等)'
? t('已设置(留空不修改,填写新内容则更新)')
: t('请粘贴完整的微信支付公钥 PEM 内容(包含 -----BEGIN PUBLIC KEY----- 等)')
}
rows={6}
extraText={
options.WechatPublicKeyPEM === '***ALREADY_SET***'
? '✓ 已配置微信支付公钥(留空则保持不变)'
: '从商户平台下载的公钥文件内容'
? t('✓ 已配置微信支付公钥(留空则保持不变)')
: t('从商户平台下载的公钥文件内容')
}
/>
@@ -277,14 +283,14 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
<Form.Switch
field='WechatUseManualCert'
label={t('启用手动证书模式')}
extraText='开启后需要手动配置平台证书,关闭则使用自动下载模式(推荐)'
extraText={t('开启后需要手动配置平台证书,关闭则使用自动下载模式(推荐)')}
/>
<Form.Input
field='WechatPlatformCertPath'
label={t('平台证书文件路径')}
placeholder='/data/certs/wechatpay_platform_cert.pem'
extraText='平台证书文件的绝对路径(与下方 PEM 内容二选一)'
extraText={t('平台证书文件的绝对路径(与下方 PEM 内容二选一)')}
/>
<Form.TextArea
@@ -292,14 +298,14 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
label={t('平台证书 PEM 内容')}
placeholder={
options.WechatPlatformCertPEM === '***ALREADY_SET***'
? '已设置(留空不修改,填写新内容则更新)'
: '请粘贴完整的平台证书 PEM 内容(包含 -----BEGIN CERTIFICATE----- 等)'
? t('已设置(留空不修改,填写新内容则更新)')
: t('请粘贴完整的平台证书 PEM 内容(包含 -----BEGIN CERTIFICATE----- 等)')
}
rows={6}
extraText={
options.WechatPlatformCertPEM === '***ALREADY_SET***'
? '✓ 已配置平台证书(留空则保持不变)'
: '与上方文件路径二选一,优先使用文件路径'
? t('✓ 已配置平台证书(留空则保持不变)')
: t('与上方文件路径二选一,优先使用文件路径')
}
/>
@@ -308,13 +314,13 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
<Form.Switch
field='WechatNativeEnabled'
label={t('启用 Native 扫码支付')}
extraText='用户扫描二维码完成支付'
extraText={t('用户扫描二维码完成支付')}
/>
<Form.Switch
field='WechatH5Enabled'
label={t('启用 H5 支付')}
extraText='在手机浏览器中唤起微信支付'
extraText={t('在手机浏览器中唤起微信支付')}
/>
<Divider margin='12px' />
@@ -323,14 +329,14 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
field='WechatNotifyUrl'
label={t('回调通知 URL')}
placeholder={t('留空则使用默认地址')}
extraText='默认: {服务器地址}/api/wechat/notify'
extraText={t('默认: {服务器地址}/api/wechat/notify')}
/>
<Form.Input
field='WechatDescription'
label={t('商品描述')}
placeholder={t('平台充值')}
extraText='显示在微信支付界面的商品描述'
extraText={t('显示在微信支付界面的商品描述')}
/>
<Form.InputNumber
@@ -338,7 +344,7 @@ const SettingsPaymentWechat = ({ options, refresh }) => {
label={t('订单过期时间(分钟)')}
min={1}
max={1440}
extraText='订单未支付的有效时间,默认 30 分钟'
extraText={t('订单未支付的有效时间,默认 30 分钟')}
/>
<Space style={{ marginTop: 20 }}>