Merge branch 'feature/interface-shut'
合并接口分流
Showing
3 changed files
with
5 additions
and
20 deletions
@@ -27,7 +27,7 @@ class DetailAction extends YohoAction { | @@ -27,7 +27,7 @@ class DetailAction extends YohoAction { | ||
27 | 27 | ||
28 | let pid = req.params[0]; | 28 | let pid = req.params[0]; |
29 | let gid = req.params[1]; | 29 | let gid = req.params[1]; |
30 | - let uid = req.user.uid || ''; | 30 | + let uid = req.user.uid || req.query.uid || ''; //TODO 测试分流用,测试后删除 |
31 | let vipLevel = detailHelper.vipLevel(req.user.vip); | 31 | let vipLevel = detailHelper.vipLevel(req.user.vip); |
32 | let saveCurrentGoodsInCookies = _.partial(service.saveRecentGoodInCookies, | 32 | let saveCurrentGoodsInCookies = _.partial(service.saveRecentGoodInCookies, |
33 | req.cookies._browse, | 33 | req.cookies._browse, |
@@ -40,15 +40,7 @@ module.exports = { | @@ -40,15 +40,7 @@ module.exports = { | ||
40 | retries: 0 | 40 | retries: 0 |
41 | }, | 41 | }, |
42 | interfaceShunt: { | 42 | interfaceShunt: { |
43 | - useInterfaceShunt: false, | ||
44 | - tencentServers: { | ||
45 | - api: ['123.206.1.98', '123.206.2.80'], | ||
46 | - service: ['123.206.1.98', '123.206.2.80'] | ||
47 | - }, | ||
48 | - awsServers: { | ||
49 | - api: 'app-java-168863769.cn-north-1.elb.amazonaws.com.cn', | ||
50 | - service: 'service-yoho-579825100.cn-north-1.elb.amazonaws.com.cn' | ||
51 | - } | 43 | + open: false |
52 | }, | 44 | }, |
53 | loggers: { | 45 | loggers: { |
54 | infoFile: { | 46 | infoFile: { |
@@ -100,15 +92,8 @@ if (isProduction) { | @@ -100,15 +92,8 @@ if (isProduction) { | ||
100 | useOneapm: true, | 92 | useOneapm: true, |
101 | useCache: true, | 93 | useCache: true, |
102 | interfaceShunt: { | 94 | interfaceShunt: { |
103 | - useInterfaceShunt: false, | ||
104 | - tencentServers: { | ||
105 | - api: ['123.206.1.98', '123.206.2.80'], | ||
106 | - service: ['123.206.1.98', '123.206.2.80'] | ||
107 | - }, | ||
108 | - awsServers: { | ||
109 | - api: 'app-java-168863769.cn-north-1.elb.amazonaws.com.cn', | ||
110 | - service: 'service-yoho-579825100.cn-north-1.elb.amazonaws.com.cn' | ||
111 | - } | 95 | + open: true, |
96 | + url: 'http://123.206.2.55/strategy' | ||
112 | } | 97 | } |
113 | }); | 98 | }); |
114 | } else if (isTest) { | 99 | } else if (isTest) { |
@@ -59,7 +59,7 @@ | @@ -59,7 +59,7 @@ | ||
59 | "uuid": "^2.0.2", | 59 | "uuid": "^2.0.2", |
60 | "winston": "^2.2.0", | 60 | "winston": "^2.2.0", |
61 | "winston-daily-rotate-file": "^1.1.4", | 61 | "winston-daily-rotate-file": "^1.1.4", |
62 | - "yoho-node-lib": "0.0.40" | 62 | + "yoho-node-lib": "0.0.46" |
63 | }, | 63 | }, |
64 | "devDependencies": { | 64 | "devDependencies": { |
65 | "autoprefixer": "^6.3.6", | 65 | "autoprefixer": "^6.3.6", |
-
Please register or login to post a comment