v4.0.17企业微信API插件优化

This commit is contained in:
2026-09-06 09:36:49 +08:00
parent 0e711be6c6
commit 192a401227
36 changed files with 2416 additions and 103 deletions
+7 -22
View File
@@ -1,4 +1,5 @@
import { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import {
Alert,
Avatar,
@@ -26,8 +27,6 @@ import {
WECOM_BOT_ROLE_DEFAULT_PERMISSIONS,
WECOM_BOT_ROLE_LABELS,
WECOM_BOT_ROLES,
WECOM_PLUGIN_API_KEY_HEADER,
resolveWecomPluginPublicUrl,
type LlmApiConfigOptionDto,
type KnowledgeBaseOptionDto,
type WecomAibotRuntimeDto,
@@ -410,27 +409,13 @@ export default function WecomBotsPage() {
type="info"
showIcon
style={{ marginBottom: 16 }}
message="企微 API 插件(与上方长连接机器人独立)"
message="企微 API 插件已迁入独立页"
description={
<div>
<div>
插件 URL:
<Typography.Text copyable>
{resolveWecomPluginPublicUrl(window.location.hostname)}
</Typography.Text>
</div>
<div>
OpenAPI:
<Typography.Text copyable>
{`${resolveWecomPluginPublicUrl(window.location.hostname)}/openapi.json`}
</Typography.Text>
</div>
<Typography.Text type="secondary">
授权方式 Service token / API key,Header 名 {WECOM_PLUGIN_API_KEY_HEADER}
;密钥只在服务器 .env 的 WECOM_PLUGIN_API_KEY,本页不展示。须先开
WECOM_PLUGIN_ENABLED=true。
</Typography.Text>
</div>
<span>
多实例、密钥与工具权限请到{' '}
<Link to="/wecom/plugins">企微机器人 → API 插件</Link>
{' '}管理,与上方长连接机器人独立。
</span>
}
/>