Authored by htoooth

fix

... ... @@ -7,6 +7,7 @@ const logger = global.yoho.logger;
const config = global.yoho.config;
const msg2row = require('./msg2row');
const routeDecode = require('./route-decode');
const crypto = global.yoho.crypto;
const durationType = {
dcl: 'domcontentload',
... ... @@ -41,7 +42,7 @@ module.exports = (req, res, next) => {
if (item.u) {
try {
item.u = decodeURIComponent(item.u);
item.u = routeDecode(item.u) || '0';
item.u = crypto.decrypt(null, item.u);
} catch (e) {
logger.error('decode uid error ', item.u);
item.u = '0';
... ...
... ... @@ -2,8 +2,6 @@ const _ = require('lodash');
const logger = global.yoho.logger;
function slowRouter(m) {
logger.info(m.tags.type, m.fields.uid, '==>', parseInt(_.get(m, 'fields.uid', '0').replace(/"/g, '')));
return {
app: _.get(m, 'tags.app', ''),
type: _.get(m, 'tags.type', ''),
... ...