Authored by 郭成尧

ctx

... ... @@ -151,6 +151,9 @@ app.use((req, res, next) => {
next();
});
// 添加请求上下文
app.use(global.yoho.httpCtx());
// dispatcher
try {
const user = require('./doraemon/middleware/user');
... ...
... ... @@ -14,8 +14,8 @@ const domains = {
liveApi: 'http://testapi.live.yohops.com:9999/',
singleApi: 'http://api-test3.yohops.com:9999/',
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
api: 'http://dev-api.yohops.com:9999/',
service: 'http://dev-service.yohops.com:9999/',
global: 'http://api-global.yohobuy.com',
// liveApi: 'http://api.live.yoho.cn/',
... ...
... ... @@ -50,7 +50,7 @@
"xml2js": "^0.4.17",
"yoho-express-session": "^2.0.0",
"yoho-md5": "^2.0.0",
"yoho-node-lib": "=0.2.22",
"yoho-node-lib": "=0.2.23",
"yoho-zookeeper": "^1.0.8"
},
"devDependencies": {
... ...