Commit 85f72369 by 肖康

更换app key信息

parent 7f7b6be3
Showing with 4 additions and 2 deletions
......@@ -10,20 +10,22 @@ App({
// options.query == {number:1}
},
personName: "",
personName: "仓库管理员",
getUserInfos() {
var self = this;
dd.getAuthCode({
success: (res) => {
var code = res.authCode;
dd.httpRequest({
url: "https://oapi.dingtalk.com/gettoken?appkey=dingmwxikbdltarcjlb8&appsecret=GUS0_HylYmPcoPYCshqUI3U2ik3r1eu7SyydOCWzUny7SZwDUQb1E1jnW7vpZCvM",
url: "https://oapi.dingtalk.com/gettoken?appkey=dingmgt557mcubzgivaw&appsecret=abN8ww1Re0d4FbLysWzuiK1SHhD-g_0h4TcC3yiprGerkG6W2dRVpieKzhUIDOjw",
success: function (res) {
var access_token = res.data.access_token;
dd.httpRequest({
url: 'https://oapi.dingtalk.com/user/getuserinfo?access_token=' + access_token + '&code=' + code,
success: function (res) {
console.log(res)
self.personName = res.data.name
},
......
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 sign in to comment