fix(channels): restore dingtalk multi-account support (#874)

This commit is contained in:
paisley
2026-04-19 17:39:13 +08:00
committed by GitHub
Unverified
parent 3a424ef692
commit 2f03aa1fad
8 changed files with 114 additions and 183 deletions

View File

@@ -206,25 +206,12 @@
"clientSecret": {
"label": "Client Secret (AppSecret)",
"placeholder": "Your app secret"
},
"robotCode": {
"label": "Robot Code (optional)",
"placeholder": "Usually same as Client ID"
},
"corpId": {
"label": "Corp ID (optional)",
"placeholder": "dingxxxxxx"
},
"agentId": {
"label": "Agent ID (optional)",
"placeholder": "123456789"
}
},
"instructions": [
"Install and enable the dingtalk plugin in OpenClaw",
"Create a DingTalk internal app and enable Stream mode",
"Fill in Client ID and Client Secret (required)",
"Fill in Robot Code / Corp ID / Agent ID if your setup requires them"
"Fill in Client ID (AppKey) and Client Secret (AppSecret)"
]
},
"signal": {

View File

@@ -206,25 +206,12 @@
"clientSecret": {
"label": "Client Secret (AppSecret)",
"placeholder": "アプリのシークレット"
},
"robotCode": {
"label": "Robot Code任意",
"placeholder": "通常は Client ID と同じ"
},
"corpId": {
"label": "Corp ID任意",
"placeholder": "dingxxxxxx"
},
"agentId": {
"label": "Agent ID任意",
"placeholder": "123456789"
}
},
"instructions": [
"まず OpenClaw に dingtalk プラグインをインストールして有効化します",
"DingTalk 開発者コンソールで社内アプリを作成し Stream モードを有効にします",
"Client ID と Client Secret を入力します(必須)",
"必要に応じて Robot Code / Corp ID / Agent ID を入力します"
"Client ID (AppKey) と Client Secret (AppSecret) を入力します"
]
},
"signal": {

View File

@@ -181,25 +181,12 @@
"clientSecret": {
"label": "Client Secret (AppSecret)",
"placeholder": "Секрет вашего приложения"
},
"robotCode": {
"label": "Robot Code (опционально)",
"placeholder": "Обычно совпадает с Client ID"
},
"corpId": {
"label": "Corp ID (опционально)",
"placeholder": "dingxxxxxx"
},
"agentId": {
"label": "Agent ID (опционально)",
"placeholder": "123456789"
}
},
"instructions": [
"Установите и включите плагин dingtalk в OpenClaw",
"Создайте внутреннее приложение DingTalk и включите режим Stream",
"Заполните Client ID и Client Secret (обязательно)",
"Заполните Robot Code / Corp ID / Agent ID, если ваша настройка требует этого"
"Заполните Client ID (AppKey) и Client Secret (AppSecret)"
]
},
"signal": {

View File

@@ -206,25 +206,12 @@
"clientSecret": {
"label": "Client Secret (AppSecret)",
"placeholder": "您的应用密钥"
},
"robotCode": {
"label": "Robot Code可选",
"placeholder": "通常与 Client ID 相同"
},
"corpId": {
"label": "Corp ID可选",
"placeholder": "dingxxxxxx"
},
"agentId": {
"label": "Agent ID可选",
"placeholder": "123456789"
}
},
"instructions": [
"先在 OpenClaw 安装并启用 dingtalk 插件",
"在钉钉开发者后台创建企业内部应用并开启 Stream 模式",
"填写 Client ID 和 Client Secret(必填)",
"根据你的应用配置按需填写 Robot Code / Corp ID / Agent ID"
"填写 Client ID (AppKey) 和 Client Secret (AppSecret)"
]
},
"signal": {

View File

@@ -174,33 +174,11 @@ export const CHANNEL_META: Record<ChannelType, ChannelMeta> = {
placeholder: 'channels:meta.dingtalk.fields.clientSecret.placeholder',
required: true,
},
{
key: 'robotCode',
label: 'channels:meta.dingtalk.fields.robotCode.label',
type: 'text',
placeholder: 'channels:meta.dingtalk.fields.robotCode.placeholder',
required: false,
},
{
key: 'corpId',
label: 'channels:meta.dingtalk.fields.corpId.label',
type: 'text',
placeholder: 'channels:meta.dingtalk.fields.corpId.placeholder',
required: false,
},
{
key: 'agentId',
label: 'channels:meta.dingtalk.fields.agentId.label',
type: 'text',
placeholder: 'channels:meta.dingtalk.fields.agentId.placeholder',
required: false,
},
],
instructions: [
'channels:meta.dingtalk.instructions.0',
'channels:meta.dingtalk.instructions.1',
'channels:meta.dingtalk.instructions.2',
'channels:meta.dingtalk.instructions.3',
],
isPlugin: true,
},