diff --git a/src/components.d.ts b/src/components.d.ts index cf8caf3a..099cf774 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -1,6 +1,9 @@ -// generated by unplugin-vue-components -// We suggest you to commit this file into source control -// Read more: https://github.com/vuejs/vue-next/pull/3399 +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// Generated by unplugin-vue-components +// Read more: https://github.com/vuejs/core/pull/3399 +export {} declare module 'vue' { export interface GlobalComponents { @@ -85,5 +88,3 @@ declare module 'vue' { PageTest: typeof import('./components/PageTest.vue')['default'] } } - -export { } diff --git a/src/components/PageConnectInfoItems.vue b/src/components/PageConnectInfoItems.vue index 01fb7bce..9bae2257 100644 --- a/src/components/PageConnectInfoItems.vue +++ b/src/components/PageConnectInfoItems.vue @@ -427,6 +427,7 @@ + @@ -776,6 +777,30 @@ + + + + + + + + + + + + + + 提示: 前往钉钉开发者平台 https://open-dev.dingtalk.com/fe/app + 点击创建应用 + 点击 基础信息 - 应用信息 + 把 AppKey 复制到 ClientID 内 + 把 AppSecret 复制到 Token 内 + 创建完成之后点击 应用功能 - 机器人与消息推送 并将机器人配置的开关打开 + 请务必确保 推送方式/消息接受模式 都为 Stream 模式 + 点击发布后 复制 RobotCode 到 RobotCode 内 + + + @@ -877,6 +902,7 @@ (form.accountType === 1 || form.accountType === 2 || form.accountType === 3) && form.token === '' || form.accountType === 4 && form.url === '' || form.accountType === 5 && (form.clientID === '' || form.token === '') || + form.accountType === 8 && (form.clientID === '' || form.token === '' || form.robotCode === '') || form.accountType === 6 && (form.account === '' || form.connectUrl === '' || form.relWorkDir === '') || form.accountType === 7 && (form.host === '' || form.port === '' || form.token === '')"> 下一步 @@ -1236,6 +1262,7 @@ const form = reactive({ step: 1, isEnd: false, account: '', + nickname: '', password: '', protocol: 1, appVersion: '', @@ -1245,6 +1272,7 @@ const form = reactive({ proxyURL:'', url:'', clientID:'', + robotCode:'', ignoreFriendRequest: false, extraArgs: '', endpoint: null as any as DiceConnection, diff --git a/src/store.ts b/src/store.ts index c73f95e4..c4e07829 100644 --- a/src/store.ts +++ b/src/store.ts @@ -186,8 +186,8 @@ export const useStore = defineStore('main', { return info as any }, - async addImConnection(form: { accountType: number, account: string, password: string, protocol: number, appVersion: string, token: string, proxyURL: string, url: string, host: string, port: number, clientID: string, implementation: string, connectUrl: string, accessToken: string, relWorkDir: string, useSignServer: boolean, signServerConfig: any }) { - const { accountType, account, password, protocol, appVersion, token, proxyURL, url, host, port, clientID, implementation, relWorkDir, connectUrl, accessToken, useSignServer, signServerConfig } = form + async addImConnection(form: { accountType: number, nickname: string,account: string, password: string, protocol: number, appVersion: string, token: string, proxyURL: string, url: string, host: string, port: number, clientID: string, robotCode: string, implementation: string, connectUrl: string, accessToken: string, relWorkDir: string, useSignServer: boolean, signServerConfig: any }) { + const { accountType, nickname, account, password, protocol, appVersion, token, proxyURL, url, host, port, clientID, robotCode, implementation, relWorkDir, connectUrl, accessToken, useSignServer, signServerConfig } = form let info = null switch (accountType) { //QQ @@ -219,6 +219,8 @@ export const useStore = defineStore('main', { case 7: info = await backend.post(urlPrefix + '/im_connections/addRed', { host, port, token }, { timeout: 65000 }) break + case 8: + info = await backend.post(urlPrefix + '/im_connections/addDingtalk', { clientID, token, nickname, robotCode }, { timeout: 65000 }) } return info as any as DiceConnection },