Authored by 陈峰

ignore Baiduspider-ads

... ... @@ -30,8 +30,8 @@ module.exports = (req, res, next) => {
ip: req.clientIp || 'unknown'
};
if (!scope.useragent) {
return;
if (!scope.useragent || /Baiduspider/.test(scope.useragent)) {
return res.send();
}
try {
... ...