Showing
2 changed files
with
22 additions
and
2 deletions
@@ -1539,7 +1539,7 @@ const showMainAsync = (req, data) => { | @@ -1539,7 +1539,7 @@ const showMainAsync = (req, data) => { | ||
1539 | HeaderModel.requestHeaderData(data.channel), // 通用头部数据 | 1539 | HeaderModel.requestHeaderData(data.channel), // 通用头部数据 |
1540 | _getProductIntroAsync(productId, productSkn), // 商品详细介绍 | 1540 | _getProductIntroAsync(productId, productSkn), // 商品详细介绍 |
1541 | curUserProduct(productData), // 商品详细价格 | 1541 | curUserProduct(productData), // 商品详细价格 |
1542 | - tdk('skn', data.skn, req) //seo | 1542 | + tdk('skn', data.skn, req) // seo |
1543 | ]); | 1543 | ]); |
1544 | 1544 | ||
1545 | let smallSortNavigator = requestData[0]; | 1545 | let smallSortNavigator = requestData[0]; |
@@ -185,7 +185,27 @@ if (isProduction) { | @@ -185,7 +185,27 @@ if (isProduction) { | ||
185 | open: false, | 185 | open: false, |
186 | url: 'http://123.206.2.55/strategy' | 186 | url: 'http://123.206.2.55/strategy' |
187 | }, | 187 | }, |
188 | - zookeeperServer: 'web.zookeeper.yohoops.org:2181' | 188 | + zookeeperServer: 'web.zookeeper.yohoops.org:2181', |
189 | + redis: { | ||
190 | + connect: { | ||
191 | + host: '10.66.101.9' | ||
192 | + }, | ||
193 | + port: '6379', | ||
194 | + retry_strategy(options) { | ||
195 | + if (options.error && options.error.code === 'ECONNREFUSED') { | ||
196 | + console.log('redis连接不成功'); | ||
197 | + } | ||
198 | + if (options.total_retry_time > 1000 * 60) { | ||
199 | + console.log('redis连接超时'); | ||
200 | + return undefined; | ||
201 | + } | ||
202 | + if (options.attempt > 10) { | ||
203 | + console.log('redis连接超过次数'); | ||
204 | + return undefined; | ||
205 | + } | ||
206 | + return Math.min(options.attempt * 100, 1000); | ||
207 | + } | ||
208 | + } | ||
189 | }); | 209 | }); |
190 | } else if (isTest) { | 210 | } else if (isTest) { |
191 | Object.assign(module.exports, { | 211 | Object.assign(module.exports, { |
-
Please register or login to post a comment