...
|
...
|
@@ -9,6 +9,7 @@ const cache = global.yoho.cache.master; |
|
|
const helpers = global.yoho.helpers;
|
|
|
const pathToRegexp = require('path-to-regexp');
|
|
|
const logger = global.yoho.logger;
|
|
|
const md5 = require('yoho-md5');
|
|
|
|
|
|
const statusCode = {
|
|
|
code: 4403,
|
...
|
...
|
@@ -83,7 +84,7 @@ module.exports = () => { |
|
|
return next();
|
|
|
}
|
|
|
|
|
|
let keyPath = `${_.trim(path, '/').replace(/\//g, ':')}`;
|
|
|
let keyPath = md5(`${router.regRoute}`);
|
|
|
let limitKey = `wap:risk:limit:${keyPath}:${ip}`;
|
|
|
let configKey = `wap:risk:${keyPath}:${ip}`;
|
|
|
let checkUrl = helpers.urlFormat('/3party/check', {
|
...
|
...
|
|