Authored by 郝肖肖

'flx'

... ... @@ -46,12 +46,12 @@ module.exports = () => {
let ip = _.get(req.yoho, 'clientIp', '');
let path = req.path || '';
let risks = _.get(req.app.locals.wap, 'json.risk', []);
let router = {};
if (_.isEmpty(path) || _.isEmpty(risks) || IP_WHITE_LIST.indexOf(ip) > -1) {
return next();
}
let router = {};
_.isArray(risks) && risks.some(item => {
if (item.state === 'off') {
return false;
... ...