feat: add user-level WeChat channel accounts

This commit is contained in:
brother7 committed 2026-09-14 00:26:29 +08:00
1 parent 46e7f6f1cd
commit b7d8b1298f
15 files changed
+575 -63

No files matched your search

+5 -2
View File
@@ -8,7 +8,10 @@ const labels: Record<string, string> = {
createApplication: '创建应用', createKey: '创建密钥', createKnowledge: '创建知识库', processKnowledge: '处理文档',
createSchedule: '创建自动任务', runSchedule: '立即运行任务',
importKnowledgeAttachment: '导入附件到知识库', createChild: '创建子智能体',
wechatBindVerification: '微信连接验证',
wechatBindVerification: '微信连接验证', channelAccountWechatBindVerification: '微信连接验证',
createChannelAccount: '添加微信账号', routeChannelAccount: '切换目标智能体', enableChannelAccount: '启用渠道',
pauseChannelAccount: '暂停渠道', disconnectChannelAccount: '断开微信账号', channelAccountWechatBindStart: '微信扫码连接',
channelAccountWechatUnbind: '解除微信登录',
};
export function CloudRecovery({ pending, onResolved }: { pending: CloudPendingOperation[]; onResolved: () => void }) {
@@ -22,7 +25,7 @@ export function CloudRecovery({ pending, onResolved }: { pending: CloudPendingOp
const response = await cloudAgentsApi.resolvePending(item.id, discard);
if (response.requires_input) {
setResult(null);
setNotice('这次微信验证还需要验证码。请进入对应智能体的「发布与访问 → 个人微信」,继续连接验证。');
setNotice('这次微信验证还需要验证码。请进入「渠道 → 微信」,选择对应账号后继续连接验证。');
} else if (!discard) setResult({ operation: item.operation, value: response.result });
onResolved();
} catch (e) { setError(e instanceof Error ? e.message : '暂时无法确认结果'); }