Authored by htoooth

update udid

... ... @@ -8,6 +8,7 @@ const helpers = global.yoho.helpers;
const sender = global.yoho.apmSender;
const hostname = require('os').hostname();
const routeEncode = require('./route-encode');
const _ = require('lodash');
const forceNoCache = (res) => {
if (res && !res.finished) {
... ... @@ -53,7 +54,7 @@ exports.serverError = () => {
return (err, req, res, next) => {
forceNoCache(res);
const uid = req.user ? req.user.uid : 0;
const udid = req.query.udid || req.cookies ? req.cookies._yasvd : 0;
const udid = _.get(req, 'cookies.udid', 0);
if (req.isApmReport) {
// 上报服务端错误
... ...
... ... @@ -73,7 +73,7 @@
"xml2js": "^0.4.19",
"yoho-express-session": "^2.0.0",
"yoho-md5": "^2.0.0",
"yoho-node-lib": "=0.5.31",
"yoho-node-lib": "=0.5.34",
"yoho-zookeeper": "^1.0.8"
},
"devDependencies": {
... ...