Commit 356dd084 by 任晓松

update

parent 4ed7d4b8
...@@ -172,14 +172,15 @@ class UtilsAuthService extends AppServiceBase { ...@@ -172,14 +172,15 @@ class UtilsAuthService extends AppServiceBase {
let result = await this.get360Token(); let result = await this.get360Token();
let token = result.access_token; let token = result.access_token;
//360验证接口 //360验证接口
let subData = "pin=" + pin + "&token=" + token; // let subData = "pin=" + pin + "&token=" + token;
let url = settings.requestUrl360() + 'api/v1/VerifyPin'; // let url = settings.requestUrl360() + 'api/v1/VerifyPin';
let rtn = await this.restClient.execGet(subData,url); // let rtn = await this.restClient.execGet(subData,url);
if (!rtn || !rtn.stdout) { // if (!rtn || !rtn.stdout) {
return system.getResult(null, "restGet data is empty"); // return system.getResult(null, "restGet data is empty");
} // }
let checkRet = JSON.parse(rtn.stdout); // let checkRet = JSON.parse(rtn.stdout);
console.log(checkRet,'checkRet--------------'); // console.log(checkRet,'checkRet--------------');
//---渠道用户登录,有则返回userpin ,没有则注册用户并返回userpin //---渠道用户登录,有则返回userpin ,没有则注册用户并返回userpin
actionBody.channelUserId = pin; actionBody.channelUserId = pin;
let loginRt = await this.getLoginByUserName(pobj,actionBody); let loginRt = await this.getLoginByUserName(pobj,actionBody);
......
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