...
|
...
|
@@ -28,7 +28,7 @@ module.exports = async({user}, next) => { |
|
|
getOp.human = cache.getAsync(`${appType}:${limitKey}:ishuman:${user.ip}`);
|
|
|
|
|
|
return Promise.props(getOp).then((results) => {
|
|
|
logger.info('[qps result] %j', getOp);
|
|
|
logger.info('[qps result] %j', ruleKeys, getOp);
|
|
|
|
|
|
if (results.human) { // 经过验证码之后1小时有效期内不再验证qps
|
|
|
logger.info('[qps] this user[%j] is being marked as human', user);
|
...
|
...
|
|