Authored by htoooth

fix

... ... @@ -252,7 +252,9 @@ module.exports = class extends global.yoho.BaseModel {
// 根据small_sort从redis获取分类下的关键词
_getRecommendKeywords(smallSort) {
return redis.all([['get', `global:yoho:seo:keywords:sortId:${smallSort}:page:1`]]).then(res => {
return redis.all([['get', `global:yoho:seo:keywords:sortId:${smallSort}:page`]]).then(res => {
return redis.all([['get', `global:yoho:seo:keywords:sortId:${smallSort}:page:${res[0] || 1}`]]);
}).then(res => {
return this._getKeywordsInfo(JSON.parse(res[0] || '[]'));
});
}
... ...