Authored by htoooth

fix

... ... @@ -251,7 +251,7 @@ module.exports = class extends global.yoho.BaseModel {
}
// 根据small_sort从redis获取分类下的关键词
_getRecommendKeywords(smallSort) {
_getRecommendKeywords(smallSort, skn) { // eslint-disable-line
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 => {
... ... @@ -272,10 +272,9 @@ module.exports = class extends global.yoho.BaseModel {
return res;
}
_getNewProduct(sort) {
_getNewProduct(sort) { // eslint-disable-line
return this.searchApi.getProductList({
limit: 10,
sort: sort,
order: 's_t_desc',
page: _.random(1, 6000)
}).then(result => {
... ...