Authored by yyq

Merge branch 'feature/hotList' into release/0606

... ... @@ -171,7 +171,13 @@ module.exports = class extends global.yoho.BaseModel {
});
let seoTDK = seoHandler.getHotKeywordsSeo(keyword.name, _.get(result, 'product.totalCount', '多'));
keyword.goods_img = _handleImageUrl(keyword.goods_img);
if (keyword.goods_img) {
keyword.goods_img = _handleImageUrl(keyword.goods_img);
} else {
let goods = _.last(_.get(result, 'product.goods', []));
keyword.goods_img = _handleImageUrl(_.get(goods, 'thumb', ''));
}
keyword.list = _.take(hotKeys, keyNum);
keyword.describe = keyword.describe || seoTDK.description;
... ...