|
@@ -229,7 +229,7 @@ const _getRelatedData = (idList) => { |
|
@@ -229,7 +229,7 @@ const _getRelatedData = (idList) => { |
229
|
cnAlphabet: data.cn_alphabet
|
229
|
cnAlphabet: data.cn_alphabet
|
230
|
});
|
230
|
});
|
231
|
});
|
231
|
});
|
232
|
- console.log(productList)
|
232
|
+ console.log(productList);
|
233
|
return productList;
|
233
|
return productList;
|
234
|
} else {
|
234
|
} else {
|
235
|
logger.error('推荐商品 cood 不是 200');
|
235
|
logger.error('推荐商品 cood 不是 200');
|
|
@@ -246,7 +246,7 @@ const _getRelatedData = (idList) => { |
|
@@ -246,7 +246,7 @@ const _getRelatedData = (idList) => { |
246
|
const _processContentData = (list) => {
|
246
|
const _processContentData = (list) => {
|
247
|
list = list || [];
|
247
|
list = list || [];
|
248
|
list = camelCase(list);
|
248
|
list = camelCase(list);
|
249
|
- console.log(list)
|
249
|
+ console.log(list);
|
250
|
|
250
|
|
251
|
let contentData = {
|
251
|
let contentData = {
|
252
|
contents: []
|
252
|
contents: []
|
|
@@ -282,7 +282,7 @@ const _processContentData = (list) => { |
|
@@ -282,7 +282,7 @@ const _processContentData = (list) => { |
282
|
if (value.goods) {
|
282
|
if (value.goods) {
|
283
|
|
283
|
|
284
|
_.forEach(value.goods.data, function(data) {
|
284
|
_.forEach(value.goods.data, function(data) {
|
285
|
- console.log(data)
|
285
|
+ console.log(data);
|
286
|
|
286
|
|
287
|
idList += data.id + ',';
|
287
|
idList += data.id + ',';
|
288
|
related.relatedReco.push(data);
|
288
|
related.relatedReco.push(data);
|
|
@@ -310,8 +310,9 @@ const _processContentData = (list) => { |
|
@@ -310,8 +310,9 @@ const _processContentData = (list) => { |
310
|
if (related.relatedReco) {
|
310
|
if (related.relatedReco) {
|
311
|
_.forEach(related.relatedReco, function(data, index) {
|
311
|
_.forEach(related.relatedReco, function(data, index) {
|
312
|
data = _.assign(data, {
|
312
|
data = _.assign(data, {
|
313
|
- //link: `${config.siteUrl}/product/list/pro_${result[index].id}_data.${data.productSkc}`
|
|
|
314
|
- })
|
313
|
+
|
|
|
314
|
+ // link: `${config.siteUrl}/product/list/pro_${result[index].id}_data.${data.productSkc}`
|
|
|
315
|
+ });
|
315
|
data = _.assign(data, result[index]);
|
316
|
data = _.assign(data, result[index]);
|
316
|
});
|
317
|
});
|
317
|
result.splice(0, recoLength.length);
|
318
|
result.splice(0, recoLength.length);
|