MCPcopy Index your code
hub / github.com/dataease/SQLBot / dingtalkClientRequest

Function dingtalkClientRequest

frontend/src/views/login/xpack/PlatformClient.ts:77–96  ·  view source on GitHub ↗
(id: string | null)

Source from the content-addressed store, hash-verified

75}
76
77const dingtalkClientRequest = async (id: string | null) => {
78 if (!id) {
79 const clientInfoRes = await queryClientInfo(7)
80 id = clientInfoRes['corpid']
81 }
82 const dd = window['dd']
83 dd.ready(function () {
84 dd.runtime.permission.requestAuthCode({
85 corpId: id,
86 onSuccess: function (info: any) {
87 const code = info.code
88 const state = `fit2cloud-dingtalk-client`
89 toUrl(`?code=${code}&state=${state}`)
90 },
91 onFail: function (err: any) {
92 ElMessage.error(err)
93 },
94 })
95 })
96}
97
98const larkClientRequest = async () => {
99 if (!window['tt']) {

Callers 1

loadClientFunction · 0.85

Calls 3

queryClientInfoFunction · 0.90
toUrlFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected