Authored by 陈峰

add user agent

@@ -95,7 +95,8 @@ module.exports = (req, res, next) => { @@ -95,7 +95,8 @@ module.exports = (req, res, next) => {
95 type: durationType[item.tp] 95 type: durationType[item.tp]
96 }, 96 },
97 fields: { 97 fields: {
98 - duration: duration 98 + duration: duration,
  99 + useragent: req.get('user-agent')
99 } 100 }
100 })); 101 }));
101 } 102 }