Showing
1 changed file
with
2 additions
and
3 deletions
@@ -251,7 +251,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -251,7 +251,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
251 | } | 251 | } |
252 | 252 | ||
253 | // 根据small_sort从redis获取分类下的关键词 | 253 | // 根据small_sort从redis获取分类下的关键词 |
254 | - _getRecommendKeywords(smallSort) { | 254 | + _getRecommendKeywords(smallSort, skn) { // eslint-disable-line |
255 | return redis.all([['get', `global:yoho:seo:keywords:sortId:${smallSort}:page`]]).then(res => { | 255 | return redis.all([['get', `global:yoho:seo:keywords:sortId:${smallSort}:page`]]).then(res => { |
256 | return redis.all([['get', `global:yoho:seo:keywords:sortId:${smallSort}:page:${res[0] || 1}`]]); | 256 | return redis.all([['get', `global:yoho:seo:keywords:sortId:${smallSort}:page:${res[0] || 1}`]]); |
257 | }).then(res => { | 257 | }).then(res => { |
@@ -272,10 +272,9 @@ module.exports = class extends global.yoho.BaseModel { | @@ -272,10 +272,9 @@ module.exports = class extends global.yoho.BaseModel { | ||
272 | return res; | 272 | return res; |
273 | } | 273 | } |
274 | 274 | ||
275 | - _getNewProduct(sort) { | 275 | + _getNewProduct(sort) { // eslint-disable-line |
276 | return this.searchApi.getProductList({ | 276 | return this.searchApi.getProductList({ |
277 | limit: 10, | 277 | limit: 10, |
278 | - sort: sort, | ||
279 | order: 's_t_desc', | 278 | order: 's_t_desc', |
280 | page: _.random(1, 6000) | 279 | page: _.random(1, 6000) |
281 | }).then(result => { | 280 | }).then(result => { |
-
Please register or login to post a comment