Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rails_dingtalk
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
other
rails_dingtalk
Commits
72c7f922
Commit
72c7f922
authored
Sep 05, 2021
by
mingyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
info;
parent
07905508
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
index.js
app/views/dingtalk/home/index.js
+5
-1
routes.rb
config/routes.rb
+1
-1
No files found.
app/views/dingtalk/home/index.js
View file @
72c7f922
...
@@ -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
:
'
GE
T'
,
method
:
'
POS
T'
,
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
()
...
...
config/routes.rb
View file @
72c7f922
...
@@ -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
ge
t
:info
pos
t
:info
end
end
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment