Authored by 郝肖肖

'global-seo'

... ... @@ -38,7 +38,7 @@ const getStaticUrls = (currentStatics) => {
// 关键词页面
const keywordsPage = () => {
return redis.getAsync('golobal:yoho:seo:keywords:allIds').then(function(res) {
return redis.getAsync('global:yoho:seo:keywords:allIds').then(function(res) {
let page = [];
_.forEach(JSON.parse(res), val => {
... ...
... ... @@ -160,7 +160,7 @@ const getLikeAsync = (skn, limit) => {
// 根据small_sort从redis获取分类下的关键词
const getRecommendKeywords = (smallSort) => {
return redis.all([['get', `golobal:yoho:seo:keywords:sortId:${smallSort}`]]).then(res => {
return redis.all([['get', `global:yoho:seo:keywords:sortId:${smallSort}`]]).then(res => {
return res[0];
});
};
... ...
... ... @@ -415,7 +415,7 @@ exports.getSearchKeywordDataById = (id, params, channel) => {
return co(function * () {
let redisData = yield redis.all([
['get', `golobal:yoho:seo:keywords:id:${id}`]
['get', `global:yoho:seo:keywords:id:${id}`]
]);
if (!redisData[0]) {
... ...