Authored by htoooth

update lib

... ... @@ -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) {
... ... @@ -51,7 +52,7 @@ exports.serverError = () => {
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) {
// 上报服务端错误
... ...
... ... @@ -57,7 +57,7 @@
"urlencode": "^1.1.0",
"uuid": "^2.0.2",
"yoho-express-session": "^2.0.0",
"yoho-node-lib": "=0.5.32",
"yoho-node-lib": "=0.5.34",
"yoho-zookeeper": "^1.0.8"
},
"devDependencies": {
... ...