提交 5829ccd5 编写于 作者: KK's avatar KK

调试

上级 531d82c7
...@@ -106,9 +106,11 @@ export class DingTalkService { ...@@ -106,9 +106,11 @@ export class DingTalkService {
*/ */
private async dd_ready() { private async dd_ready() {
// 设置导航标题 // 设置导航标题
this.login(); let { issuccess } = await this.login();
this.setNavBack(); this.setNavBack();
this.doAuthentication(); if(issuccess){
this.doAuthentication();
}
} }
...@@ -372,7 +374,7 @@ export class DingTalkService { ...@@ -372,7 +374,7 @@ export class DingTalkService {
public async doAuthentication() { public async doAuthentication() {
const reAccess_token = await this.getAccess_token(); const reAccess_token = await this.getAccess_token();
alert(JSON.stringify(reAccess_token)); alert(JSON.stringify(reAccess_token));
this.authentication(reAccess_token.agentId, reAccess_token.corpid, reAccess_token.data.timeStamp, reAccess_token.data.nonceStr, reAccess_token.data.signature); this.authentication(reAccess_token.agentId, this.corpId, reAccess_token.data.timeStamp, reAccess_token.data.nonceStr, reAccess_token.data.signature);
} }
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册