Showing
1 changed file
with
6 additions
and
2 deletions
@@ -458,9 +458,13 @@ exports.getSearchKeywordDataById = (id, params, channel) => { | @@ -458,9 +458,13 @@ exports.getSearchKeywordDataById = (id, params, channel) => { | ||
458 | 458 | ||
459 | if (!_.isEmpty(redisData.data)) { | 459 | if (!_.isEmpty(redisData.data)) { |
460 | _.forEach(redisData.data, value => { | 460 | _.forEach(redisData.data, value => { |
461 | - Object.assign({ | 461 | + if (!value) { |
462 | + return; | ||
463 | + } | ||
464 | + | ||
465 | + Object.assign(value, { | ||
462 | name: value.keyword, | 466 | name: value.keyword, |
463 | - href: helpers.urlFormat(`/canpin/${value.root_id}.html`, null, 'www') | 467 | + href: helpers.urlFormat(`/canpin/${value.id}.html`, null, 'www') |
464 | }); | 468 | }); |
465 | }); | 469 | }); |
466 | 470 |
-
Please register or login to post a comment