Showing
2 changed files
with
16 additions
and
13 deletions
@@ -902,10 +902,12 @@ exports.handleSeniorFilterData = (data, params) => { | @@ -902,10 +902,12 @@ exports.handleSeniorFilterData = (data, params) => { | ||
902 | }); | 902 | }); |
903 | 903 | ||
904 | _.forEach(data.standard, value => { | 904 | _.forEach(data.standard, value => { |
905 | - let sub = [], | ||
906 | - standardName = _.get(value, 'standard_name', ''); | 905 | + if (!value) { |
906 | + return; | ||
907 | + } | ||
907 | 908 | ||
908 | - // let parKey = `parameter_${value.standard_id}`; | 909 | + let sub = [], |
910 | + standardName = value.standard_name; | ||
909 | 911 | ||
910 | _.forEach(value.sub, subValue => { | 912 | _.forEach(value.sub, subValue => { |
911 | let ched = qStandard[value.standard_id] === parseInt(subValue.standard_id, 10); | 913 | let ched = qStandard[value.standard_id] === parseInt(subValue.standard_id, 10); |
@@ -1432,6 +1434,7 @@ exports.getListSeo = (channel, sorts, checked) => { | @@ -1432,6 +1434,7 @@ exports.getListSeo = (channel, sorts, checked) => { | ||
1432 | } | 1434 | } |
1433 | }); | 1435 | }); |
1434 | 1436 | ||
1437 | + checked = checked || []; | ||
1435 | _.forEach(checked, ck => { | 1438 | _.forEach(checked, ck => { |
1436 | switch (ck.itemType) { | 1439 | switch (ck.itemType) { |
1437 | case 'brand': | 1440 | case 'brand': |
@@ -17,18 +17,18 @@ module.exports = { | @@ -17,18 +17,18 @@ module.exports = { | ||
17 | cookieDomain: '.yohobuy.com', | 17 | cookieDomain: '.yohobuy.com', |
18 | domains: { | 18 | domains: { |
19 | // test3 | 19 | // test3 |
20 | - singleApi: 'http://api-test3.yohops.com:9999/', | ||
21 | - api: 'http://api-test3.yohops.com:9999/', | ||
22 | - service: 'http://service-test3.yohops.com:9999/', | ||
23 | - serviceNotify: 'http://service-test3.yohops.com:9999/', | ||
24 | - global: 'http://global-test-soa.yohops.com:9999/', | 20 | + // singleApi: 'http://api-test3.yohops.com:9999/', |
21 | + // api: 'http://api-test3.yohops.com:9999/', | ||
22 | + // service: 'http://service-test3.yohops.com:9999/', | ||
23 | + // serviceNotify: 'http://service-test3.yohops.com:9999/', | ||
24 | + // global: 'http://global-test-soa.yohops.com:9999/', | ||
25 | 25 | ||
26 | // prod | 26 | // prod |
27 | - // singleApi: 'http://single.yoho.cn/', | ||
28 | - // api: 'http://api.yoho.cn/', | ||
29 | - // service: 'http://service.yoho.cn/', | ||
30 | - // serviceNotify: 'http://service.yoho.cn/', | ||
31 | - // global: 'http://api-global.yohobuy.com/', | 27 | + singleApi: 'http://single.yoho.cn/', |
28 | + api: 'http://api.yoho.cn/', | ||
29 | + service: 'http://service.yoho.cn/', | ||
30 | + serviceNotify: 'http://service.yoho.cn/', | ||
31 | + global: 'http://api-global.yohobuy.com/', | ||
32 | 32 | ||
33 | // gray | 33 | // gray |
34 | // singleApi: 'http://single.gray.yohops.com/', | 34 | // singleApi: 'http://single.gray.yohops.com/', |
-
Please register or login to post a comment