Commit 73a1dec5 by mingyuan

test dingtalk

parent 72c7f922
...@@ -13,12 +13,13 @@ dd.ready(() => { ...@@ -13,12 +13,13 @@ dd.ready(() => {
fetch('https://soa-okr.tallty.com/dingtalk/apps/info', { fetch('https://soa-okr.tallty.com/dingtalk/apps/info', {
method: 'POST', method: 'POST',
headers: { headers: {
Accept: 'application/json' Accept: 'application/json',
'Content-Type': 'application/json'
}, },
body: { body: JSON.stringify({
corp_id: 'ding9f5ed2cec249700e35c2f4657eb6378f', corp_id: 'ding9f5ed2cec249700e35c2f4657eb6378f',
code: info.code code: info.code
} })
}).then(response => { }).then(response => {
return response.text() return response.text()
}).then(body => { }).then(body => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment