fix(channels): restore dingtalk multi-account support (#874)
This commit is contained in:
committed by
GitHub
Unverified
parent
3a424ef692
commit
2f03aa1fad
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user