Commit 72c7f922 by mingyuan

info;

parent 07905508
...@@ -11,9 +11,13 @@ dd.ready(() => { ...@@ -11,9 +11,13 @@ dd.ready(() => {
buttonName: "收到" buttonName: "收到"
}) })
fetch('https://soa-okr.tallty.com/dingtalk/apps/info', { fetch('https://soa-okr.tallty.com/dingtalk/apps/info', {
method: 'GET', method: 'POST',
headers: { headers: {
Accept: 'application/json' Accept: 'application/json'
},
body: {
corp_id: 'ding9f5ed2cec249700e35c2f4657eb6378f',
code: info.code
} }
}).then(response => { }).then(response => {
return response.text() return response.text()
......
...@@ -10,7 +10,7 @@ Rails.application.routes.draw do ...@@ -10,7 +10,7 @@ Rails.application.routes.draw do
end end
resources :apps do resources :apps do
collection do collection do
get :info post :info
end end
end end
end end
......
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