Showing
1 changed file
with
1 additions
and
1 deletions
@@ -19,7 +19,6 @@ module.exports = (req, res, next) => { | @@ -19,7 +19,6 @@ module.exports = (req, res, next) => { | ||
19 | logger.error('query l is undefined'); | 19 | logger.error('query l is undefined'); |
20 | return res.send(); | 20 | return res.send(); |
21 | } | 21 | } |
22 | - const referer = url.parse(req.get('referer') || ''); | ||
23 | 22 | ||
24 | try { | 23 | try { |
25 | const report = queryParse.parse(req.query.l); | 24 | const report = queryParse.parse(req.query.l); |
@@ -29,6 +28,7 @@ module.exports = (req, res, next) => { | @@ -29,6 +28,7 @@ module.exports = (req, res, next) => { | ||
29 | return res.send(); | 28 | return res.send(); |
30 | } | 29 | } |
31 | report.forEach(item => { | 30 | report.forEach(item => { |
31 | + const referer = url.parse(req.get('referer') || item.pt || ''); | ||
32 | let data = { | 32 | let data = { |
33 | tags: { | 33 | tags: { |
34 | app: referer.hostname, | 34 | app: referer.hostname, |
-
Please register or login to post a comment