Authored by 郝肖肖

'flx'

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