Authored by ccbikai(👎🏻🍜)

即将售罄逻辑修改

@@ -17,21 +17,21 @@ module.exports = { @@ -17,21 +17,21 @@ module.exports = {
17 assetUrl: '//127.0.0.1:5001', 17 assetUrl: '//127.0.0.1:5001',
18 testCode: 'yoho4946abcdef#$%&!@', 18 testCode: 'yoho4946abcdef#$%&!@',
19 domains: { 19 domains: {
20 - api: 'http://api-test3.yohops.com:9999/',  
21 - service: 'http://service-test3.yohops.com:9999/',  
22 - liveApi: 'http://testapi.live.yohops.com:9999/',  
23 - singleApi: 'http://api-test3.yohops.com:9999/',  
24 - imSocket: 'ws://im.yohobuy.com:10240',  
25 - imCs: 'http://im.yohobuy.com/api',  
26 - imServer: 'http://im.yohobuy.com/server' 20 + // api: 'http://api-test3.yohops.com:9999/',
  21 + // service: 'http://service-test3.yohops.com:9999/',
  22 + // liveApi: 'http://testapi.live.yohops.com:9999/',
  23 + // singleApi: 'http://api-test3.yohops.com:9999/',
  24 + // imSocket: 'ws://im.yohobuy.com:10240',
  25 + // imCs: 'http://im.yohobuy.com/api',
  26 + // imServer: 'http://im.yohobuy.com/server'
27 27
28 - // api: 'http://api.yoho.cn/',  
29 - // service: 'http://service.yoho.cn/',  
30 - // liveApi: 'http://api.live.yoho.cn/',  
31 - // singleApi: 'http://single.yoho.cn/',  
32 - // imSocket: 'wss://imsocket.yohobuy.com:443',  
33 - // imCs: 'https://imhttp.yohobuy.com/api',  
34 - // imServer: 'https://imhttp.yohobuy.com/server' 28 + api: 'http://api.yoho.cn/',
  29 + service: 'http://service.yoho.cn/',
  30 + liveApi: 'http://api.live.yoho.cn/',
  31 + singleApi: 'http://single.yoho.cn/',
  32 + imSocket: 'wss://imsocket.yohobuy.com:443',
  33 + imCs: 'https://imhttp.yohobuy.com/api',
  34 + imServer: 'https://imhttp.yohobuy.com/server'
35 }, 35 },
36 subDomains: { 36 subDomains: {
37 host: '.m.yohobuy.com', 37 host: '.m.yohobuy.com',
@@ -130,7 +130,7 @@ exports.processProductList = (list, options) => { @@ -130,7 +130,7 @@ exports.processProductList = (list, options) => {
130 // product.default_images = _procProductImg(product.goods_list[0], product.gender, options.yh_channel); 130 // product.default_images = _procProductImg(product.goods_list[0], product.gender, options.yh_channel);
131 // } 131 // }
132 132
133 - // product.is_soon_sold_out = product.is_soon_sold_out === 'Y'; 133 + product.is_soon_sold_out = product.is_soon_sold_out === 'Y';
134 134
135 if (product.cn_alphabet) { 135 if (product.cn_alphabet) {
136 product.cn_alphabet = productNameProcess(product.cn_alphabet); 136 product.cn_alphabet = productNameProcess(product.cn_alphabet);
@@ -157,6 +157,8 @@ exports.processProductList = (list, options) => { @@ -157,6 +157,8 @@ exports.processProductList = (list, options) => {
157 product.is_solded = true; 157 product.is_solded = true;
158 } 158 }
159 159
  160 + product.is_soon_sold_out = tags.is_soon_sold_out;
  161 +
160 } 162 }
161 163
162 pruductList.push(product); 164 pruductList.push(product);