Commit ef77a061 by 宋毅

tj

parent a108e1c2
...@@ -161,24 +161,29 @@ class tmqueryCtl extends CtlBase { ...@@ -161,24 +161,29 @@ class tmqueryCtl extends CtlBase {
try { try {
var authUrl = pobj.authUrl; var authUrl = pobj.authUrl;
var authToken = pobj.authToken; var authToken = pobj.authToken;
var actionProcess = pobj.actionProcess;
if (!authUrl) { if (!authUrl) {
return system.getResult(null, "authUrl不能为空"); return system.getResult(null, "authUrl不能为空");
} }
if (!authToken) { if (!authToken) {
return system.getResult(null, "authToken不能为空"); return system.getResult(null, "authToken不能为空");
} }
if (!actionProcess) {
return system.getResult(null, "actionProcess不能为空");
}
var result = await this.execClient.execPostJDTK("", authUrl, authToken); var result = await this.execClient.execPostJDTK("", authUrl, authToken);
console.log(result, "execPostJDTK............"); console.log(result, "execPostJDTK............");
if (!result || !result.account) { if (!result || !result.account) {
return system.getResult(null, "处理用户请求失败,msg:" + result.error_description); return system.getResult(null, "处理用户请求失败,msg:" + result.error_description);
} }
var tokenInfo = await this.getToken(pobj.actionProcess); var tokenInfo = await this.getToken(actionProcess);
console.log(tokenInfo, "getUserInfo..................getToken............"); console.log(tokenInfo, "getUserInfo..................getToken............");
if (tokenInfo.status != 0) { if (tokenInfo.status != 0) {
return tokenInfo; return tokenInfo;
} }
//有返回用户信息进行用户ID加密 //有返回用户信息进行用户ID加密
var param = { var param = {
actionProcess: actionProcess,
actionBody: { channelUserId: result.account }, actionBody: { channelUserId: result.account },
isUser: "yes" isUser: "yes"
}; };
......
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