diff --git a/frontend/web/src/admin/modules/channelFields.ts b/frontend/web/src/admin/modules/channelFields.ts index 696ff55..22e0985 100644 --- a/frontend/web/src/admin/modules/channelFields.ts +++ b/frontend/web/src/admin/modules/channelFields.ts @@ -24,10 +24,7 @@ export const PLATFORM_FIELDS: Record = { ], telegram: [{ key: "webhook_url", label: "webhook_url(公网回调地址)", placeholder: "https://…" }], "weixin-ilink": [ - { key: "cdn_base_url", label: "cdn_base_url(媒体 CDN)", placeholder: "https://…" }, - { key: "bot_id", label: "bot_id(ilink_bot_id)", placeholder: "wx…" }, - { key: "owner_id", label: "owner_id(绑定主人 uid)", placeholder: "wx…" }, - { key: "cursor", label: "cursor(get_updates_buf)", placeholder: "…" }, + { key: "cdn_base_url", label: "cdn_base_url(媒体 CDN,留空自动)", placeholder: "https://…" }, ], webhook: [ { key: "endpointPath", label: "endpointPath(挂载路由)", placeholder: "/webhook" }, @@ -59,8 +56,8 @@ export const PLATFORM_GUIDE: Record = { hint: "webhook_url(公网回调,可选)在「高级选项」里配置;留空则走长轮询。", }, "weixin-ilink": { - guide: "填 bot_token(必填)与 bot_id / owner_id", - hint: "bot_id / owner_id / cdn_base_url / cursor 在「高级选项」里配置;媒体 CDN 可留空自动。", + guide: "只需填 bot_token(必填,或连接时触发扫码登录自动获取),其余自动获取", + hint: "连接后自动获取 bot 身份(ilink_bot_id / bot_id)并持续维护 get_updates_buf 游标;需要媒体 CDN 时可在「高级选项」配 cdn_base_url(留空自动)。", }, webhook: { guide: "填 endpointPath 与 secret(必填)", diff --git a/frontend/web/src/admin/modules/channels/AdapterDetailPage.tsx b/frontend/web/src/admin/modules/channels/AdapterDetailPage.tsx index 571fb60..edc99ff 100644 --- a/frontend/web/src/admin/modules/channels/AdapterDetailPage.tsx +++ b/frontend/web/src/admin/modules/channels/AdapterDetailPage.tsx @@ -55,6 +55,7 @@ export function AdapterDetailPage({ adapter, onBack }: { adapter: string; onBack {connected ? "已连接" : "未连接"} {account?.botUsername ? @{account.botUsername} : null} {account?.botNickname ? {account.botNickname} : null} + {account?.botId ? bot_id:{account.botId} : null} {loading ? 加载中… : null}
diff --git a/frontend/web/src/admin/modules/channels/GenericAdapterPanel.tsx b/frontend/web/src/admin/modules/channels/GenericAdapterPanel.tsx index 067b9b4..e5ab92b 100644 --- a/frontend/web/src/admin/modules/channels/GenericAdapterPanel.tsx +++ b/frontend/web/src/admin/modules/channels/GenericAdapterPanel.tsx @@ -35,6 +35,7 @@ export function GenericAdapterPanel({
{label} 平台能力 {accountName} + {account?.botId ? bot_id:{account.botId} : null} 通用壳 · 平台专属端点未接入