Showing
4 changed files
with
8 additions
and
0 deletions
@@ -4,6 +4,7 @@ module.exports = { | @@ -4,6 +4,7 @@ module.exports = { | ||
4 | queryRefundExchangeList: { | 4 | queryRefundExchangeList: { |
5 | title: '特殊商品列表数据', | 5 | title: '特殊商品列表数据', |
6 | url: '/refundExchangeAttribute/queryRefundExchangeList', | 6 | url: '/refundExchangeAttribute/queryRefundExchangeList', |
7 | + timeout:3000, | ||
7 | params: [ | 8 | params: [ |
8 | {name: 'productSkn', type: 'Number'}, | 9 | {name: 'productSkn', type: 'Number'}, |
9 | {name: 'brandId', type: 'Number'}, | 10 | {name: 'brandId', type: 'Number'}, |
@@ -240,6 +240,9 @@ function __requestOption(req, apiOpt, config, consts) { | @@ -240,6 +240,9 @@ function __requestOption(req, apiOpt, config, consts) { | ||
240 | if (req._yoheaders) { | 240 | if (req._yoheaders) { |
241 | options.headers = _.merge(options.headers, req._yoheaders); | 241 | options.headers = _.merge(options.headers, req._yoheaders); |
242 | } | 242 | } |
243 | + if(apiOpt.timeout){ | ||
244 | + options.timeout=apiOpt.timeout; | ||
245 | + } | ||
243 | console.log("*************************************"); | 246 | console.log("*************************************"); |
244 | console.log("Http", options.url, data, options.headers); | 247 | console.log("Http", options.url, data, options.headers); |
245 | console.log("*************************************"); | 248 | console.log("*************************************"); |
@@ -4,6 +4,7 @@ module.exports = { | @@ -4,6 +4,7 @@ module.exports = { | ||
4 | queryRefundExchangeList: { | 4 | queryRefundExchangeList: { |
5 | title: '特殊商品列表数据', | 5 | title: '特殊商品列表数据', |
6 | url: '/refundExchangeAttribute/queryRefundExchangeList', | 6 | url: '/refundExchangeAttribute/queryRefundExchangeList', |
7 | + timeout:3000, | ||
7 | params: [ | 8 | params: [ |
8 | {name: 'productSkn', type: 'Number'}, | 9 | {name: 'productSkn', type: 'Number'}, |
9 | {name: 'brandId', type: 'Number'}, | 10 | {name: 'brandId', type: 'Number'}, |
@@ -240,6 +240,9 @@ function __requestOption(req, apiOpt, config, consts) { | @@ -240,6 +240,9 @@ function __requestOption(req, apiOpt, config, consts) { | ||
240 | if (req._yoheaders) { | 240 | if (req._yoheaders) { |
241 | options.headers = _.merge(options.headers, req._yoheaders); | 241 | options.headers = _.merge(options.headers, req._yoheaders); |
242 | } | 242 | } |
243 | + if(apiOpt.timeout){ | ||
244 | + options.timeout=apiOpt.timeout; | ||
245 | + } | ||
243 | console.log("*************************************"); | 246 | console.log("*************************************"); |
244 | console.log("Http", options.url, data, options.headers); | 247 | console.log("Http", options.url, data, options.headers); |
245 | console.log("*************************************"); | 248 | console.log("*************************************"); |
-
Please register or login to post a comment