Commit e0d1ab03 by 王悦

fix重置密码次数超时

parent b92c2bbe
...@@ -30,7 +30,7 @@ class LoginTimesCache extends CacheBase { ...@@ -30,7 +30,7 @@ class LoginTimesCache extends CacheBase {
let cachekey = this.prefix + key let cachekey = this.prefix + key
let cache = await this.getCache(key); let cache = await this.getCache(key);
if (!cache) { if (!cache) {
await this.cache(key, 0, 60) await this.cache(key, "0", 60)
} }
return this.redisClient.incr(cachekey) return this.redisClient.incr(cachekey)
} }
......
...@@ -47,7 +47,7 @@ class CaptchaService { ...@@ -47,7 +47,7 @@ class CaptchaService {
} }
if(code.toLowerCase() != cacheCode.toLowerCase()) { if(code.toLowerCase() != cacheCode.toLowerCase()) {
await this.redisClient.delete(key); await this.redisClient.delete(key);
return system.getResult(null, "验证码输入错误,点击重试"); return system.getResult(null, "验证码输入错误,点击重试");
} }
return system.getResultSuccess(1); return system.getResultSuccess(1);
......
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