Commit 5593527a by 王栋源

wdy

parent 7367ecda
......@@ -102,7 +102,7 @@ class UtilsAuthSve extends AppServiceBase {
if (result.status == 0 && actionBody.userpin) {
this.userLogout(pobj, actionBody);
}
return system.getResultSuccess();
return result;
}
async userLogout(pobj, actionBody) {
console.log(actionBody.userpin);
......@@ -111,9 +111,14 @@ class UtilsAuthSve extends AppServiceBase {
}
var cacheManager = system.getObject("db.common.cacheManager");
var userinfo = await this.cacheManager["AppUserPinByLoginPwdCache"].cache(actionBody.userpin, pobj, system.exTime);
if(userinfo.data){
pobj.actionBody.userName=userinfo.data.channel_username;
}else{
return system.getResultSuccess();
}
await cacheManager["AppUserPinByLoginVcodeCache"].invalidate(actionBody.userpin);
await cacheManager["AppUserPinByLoginPwdCache"].invalidate(actionBody.userpin);
pobj.actionBody.userName=userinfo.data.channel_username;
var applogout=await this.restPostUrl(pobj, this.centerAppUrl + "auth/accessAuth/logout");
return applogout;
}
......
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