Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
photoStore
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
85f72369
authored
Sep 04, 2020
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更换app key信息
parent
7f7b6be3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
app.js
app.js
View file @
85f72369
...
@@ -10,20 +10,22 @@ App({
...
@@ -10,20 +10,22 @@ App({
// options.query == {number:1}
// options.query == {number:1}
},
},
personName
:
""
,
personName
:
"
仓库管理员
"
,
getUserInfos
()
{
getUserInfos
()
{
var
self
=
this
;
var
self
=
this
;
dd
.
getAuthCode
({
dd
.
getAuthCode
({
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
var
code
=
res
.
authCode
;
var
code
=
res
.
authCode
;
dd
.
httpRequest
({
dd
.
httpRequest
({
url
:
"https://oapi.dingtalk.com/gettoken?appkey=dingm
wxikbdltarcjlb8&appsecret=GUS0_HylYmPcoPYCshqUI3U2ik3r1eu7SyydOCWzUny7SZwDUQb1E1jnW7vpZCvM
"
,
url
:
"https://oapi.dingtalk.com/gettoken?appkey=dingm
gt557mcubzgivaw&appsecret=abN8ww1Re0d4FbLysWzuiK1SHhD-g_0h4TcC3yiprGerkG6W2dRVpieKzhUIDOjw
"
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
var
access_token
=
res
.
data
.
access_token
;
var
access_token
=
res
.
data
.
access_token
;
dd
.
httpRequest
({
dd
.
httpRequest
({
url
:
'https://oapi.dingtalk.com/user/getuserinfo?access_token='
+
access_token
+
'&code='
+
code
,
url
:
'https://oapi.dingtalk.com/user/getuserinfo?access_token='
+
access_token
+
'&code='
+
code
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
console
.
log
(
res
)
console
.
log
(
res
)
self
.
personName
=
res
.
data
.
name
self
.
personName
=
res
.
data
.
name
},
},
...
...
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