...
|
...
|
@@ -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';
|
...
|
...
|
|