Authored by htoooth

fix

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