Authored by htoooth

fix

... ... @@ -60,6 +60,7 @@ module.exports = class extends global.yoho.BaseModel {
this.getNewProduct = _cached(this._getNewProduct, this);
this.getGuangArticles = _cached(this._getGuangArticles, this);
this.getRecommendKeywords = _cached(this._getRecommendKeywords, this);
}
/**
... ... @@ -250,12 +251,12 @@ module.exports = class extends global.yoho.BaseModel {
}
// 根据small_sort从redis获取分类下的关键词
getRecommendKeywords(smallSort) {
_getRecommendKeywords(smallSort) {
return redis.all([['get', `global:yoho:seo:keywords:sortId:${smallSort}:page:1`]]).then(res => {
return res[0];
}).then(result => {
return this._getKeywordsInfo(JSON.parse(result || '[]'));
})
});
}
// 返回6条推荐关键词页面
... ...