...
|
...
|
@@ -12,7 +12,7 @@ const logger = global.yoho.logger; |
|
|
|
|
|
const statusCode = {
|
|
|
code: 4403,
|
|
|
date: {},
|
|
|
data: {},
|
|
|
message: '亲,您的访问次数过多,请稍后再试哦...'
|
|
|
};
|
|
|
|
...
|
...
|
@@ -83,11 +83,11 @@ module.exports = () => { |
|
|
return next();
|
|
|
}
|
|
|
|
|
|
let keyPath = `${_.trim(path, '/').replace(/\//g, ':')}:${ip}`;
|
|
|
let limitKey = `wap:risk:limit:${keyPath}`;
|
|
|
let configKey = `wap:risk:${keyPath}`;
|
|
|
let keyPath = `${_.trim(path, '/').replace(/\//g, ':')}`;
|
|
|
let limitKey = `wap:risk:limit:${keyPath}:${ip}`;
|
|
|
let configKey = `wap:risk:${keyPath}:${ip}`;
|
|
|
let checkUrl = helpers.urlFormat('/3party/check', {
|
|
|
pid: limitKey
|
|
|
pid: `wap:risk:limit:${keyPath}`
|
|
|
});
|
|
|
|
|
|
return Promise.all([
|
...
|
...
|
|