Commit 054b94d2 by 宋毅

tj

parent 337cf2a9
......@@ -291,7 +291,7 @@ class OpPlatformUtils {
async getReqTokenByHosts(actionBody) {
var cacheManager = system.getObject("db.common.cacheManager");
var inputkey = actionBody.reqType == "hosts" ? actionBody.appHosts : actionBody.appkey;
var result = await cacheManager["AppTokenByHostsCache"].cache(inputkey, actionBody, system.shortExTime);
var result = await cacheManager["AppTokenByHostsCache"].cache(inputkey, actionBody, system.exTime);
return result;
}
......@@ -310,7 +310,7 @@ class OpPlatformUtils {
await this.clearLoginCache(inputkey);
}
}
var result = await cacheManager["AppUserPinByUserNameCache"].cache(inputkey, pobj, system.shortExTime);
var result = await cacheManager["AppUserPinByUserNameCache"].cache(inputkey, pobj, system.exTime);
if (result && result.status == 0) {
var userpinKey = this.getUserPinKey(pobj.actionBody.userpin);
this.redisClient.setWithEx(userpinKey, JSON.stringify(result), system.exTime);
......@@ -329,7 +329,7 @@ class OpPlatformUtils {
// if (result && result.status == 0) {
// return system.getResultFail(system.reDoLoginFail, "请勿重复登录", { userpin: result.data.userpin || "" });
// }
var result = await cacheManager["AppUserPinByLoginPwdCache"].cache(inputkey, pobj, system.shortExTime);
var result = await cacheManager["AppUserPinByLoginPwdCache"].cache(inputkey, pobj, system.exTime);
if (result && result.status == 0) {
var userpinKey = this.getUserPinKey(pobj.actionBody.userpin);
this.redisClient.setWithEx(userpinKey, JSON.stringify(result), system.exTime);
......@@ -349,7 +349,7 @@ class OpPlatformUtils {
// return system.getResultFail(system.reDoLoginFail, "请勿重复登录", { userpin: result.data.userpin || "" });
// }
// }
var result = await cacheManager["AppUserPinByLoginVcodeCache"].cache(inputkey, pobj, system.shortExTime);
var result = await cacheManager["AppUserPinByLoginVcodeCache"].cache(inputkey, pobj, system.exTime);
if (result && result.status == 0 && pobj.actionBody.reqType != "reg") {
var userpinKey = this.getUserPinKey(pobj.actionBody.userpin);
this.redisClient.setWithEx(userpinKey, JSON.stringify(result), system.exTime);
......
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