diff --git a/api/event.js b/api/event.js index d7a2f146..0af36d97 100644 --- a/api/event.js +++ b/api/event.js @@ -22,7 +22,7 @@ export default async (request, context) => { 'Accept-Language': acceptLanguage, 'User-Agent': userAgent } - const id = crypto.createHash('md5').update(`${context['ip']}${context['geo']['city']}${context['geo']['latitude']}${context['geo']['longitude']}`).digest('hex') + const id = crypto.createHash('md5').update(`${context['ip']}${context['geo']['city']}${context['geo']['latitude']}${context['geo']['longitude']}${userAgent}`).digest('hex') let url = setUrl(id) const ids = getStore('ids') let userId = await ids.get(id)