Commit d6b3c7b8 by 王栋源

wdy

parent c0c9a711
...@@ -63,5 +63,11 @@ class AccessAuthAPI extends APIBase { ...@@ -63,5 +63,11 @@ class AccessAuthAPI extends APIBase {
return result; return result;
} }
async logout(pobj, qobj, req){
var result = await this.opPlatformUtils.logout(pobj);
return result;
}
} }
module.exports = AccessAuthAPI; module.exports = AccessAuthAPI;
\ No newline at end of file
...@@ -266,6 +266,15 @@ class OpPlatformUtils { ...@@ -266,6 +266,15 @@ class OpPlatformUtils {
return acckapp; return acckapp;
} }
async logout(pobj) {
var inputkey = pobj.appInfo.uapp_key + "_" + pobj.actionBody.userName;
var cacheManager = system.getObject("db.common.cacheManager");
await cacheManager["AppUserPinByLoginPwdCache"].invalidate(inputkey);
await cacheManager["AppUserPinByLoginVcodeCache"].invalidate(inputkey);
return system.getResultSuccess();;
}
} }
module.exports = OpPlatformUtils; module.exports = OpPlatformUtils;
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