Authored by 郝肖肖

'开关'

... ... @@ -43,6 +43,11 @@ const _jumpUrl = (req, res, next, result) => {
module.exports = () => {
return (req, res, next) => {
// default close
if (!_.get(req.app.locals.wap, 'close.risk', false)) {
return next();
}
let ip = _.get(req.yoho, 'clientIp', '');
let path = req.path || '';
let risks = _.get(req.app.locals.wap, 'json.risk', []);
... ...