Authored by 郭成尧

ctx

@@ -151,6 +151,9 @@ app.use((req, res, next) => { @@ -151,6 +151,9 @@ app.use((req, res, next) => {
151 next(); 151 next();
152 }); 152 });
153 153
  154 + // 添加请求上下文
  155 +app.use(global.yoho.httpCtx());
  156 +
154 // dispatcher 157 // dispatcher
155 try { 158 try {
156 const user = require('./doraemon/middleware/user'); 159 const user = require('./doraemon/middleware/user');
@@ -14,8 +14,8 @@ const domains = { @@ -14,8 +14,8 @@ const domains = {
14 liveApi: 'http://testapi.live.yohops.com:9999/', 14 liveApi: 'http://testapi.live.yohops.com:9999/',
15 singleApi: 'http://api-test3.yohops.com:9999/', 15 singleApi: 'http://api-test3.yohops.com:9999/',
16 16
17 - api: 'http://api-test3.yohops.com:9999/',  
18 - service: 'http://service-test3.yohops.com:9999/', 17 + api: 'http://dev-api.yohops.com:9999/',
  18 + service: 'http://dev-service.yohops.com:9999/',
19 global: 'http://api-global.yohobuy.com', 19 global: 'http://api-global.yohobuy.com',
20 20
21 // liveApi: 'http://api.live.yoho.cn/', 21 // liveApi: 'http://api.live.yoho.cn/',
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 "xml2js": "^0.4.17", 50 "xml2js": "^0.4.17",
51 "yoho-express-session": "^2.0.0", 51 "yoho-express-session": "^2.0.0",
52 "yoho-md5": "^2.0.0", 52 "yoho-md5": "^2.0.0",
53 - "yoho-node-lib": "=0.2.22", 53 + "yoho-node-lib": "=0.2.23",
54 "yoho-zookeeper": "^1.0.8" 54 "yoho-zookeeper": "^1.0.8"
55 }, 55 },
56 "devDependencies": { 56 "devDependencies": {