...
|
...
|
@@ -359,13 +359,13 @@ const listNew = (req, res, next) => { |
|
|
seoTitle = stringProcess.decodeURIComponent(paramsTitle);
|
|
|
}
|
|
|
|
|
|
logger.info('seoTitle:' + seoTitle);
|
|
|
|
|
|
try {
|
|
|
categoryIntroRedis =
|
|
|
yield redis.hmgetAsync(`category:description:${md5(seoTitle)}`, 'category', 'description').timeout(200);
|
|
|
} catch (e) {
|
|
|
logger.error('redis.hmgetAsync.category.description:' + e);
|
|
|
if (seoTitle) {
|
|
|
try {
|
|
|
categoryIntroRedis =
|
|
|
yield redis.hmgetAsync(`category:description:${md5(seoTitle)}`, 'category', 'description').timeout(200); // eslint-disable-line
|
|
|
} catch (e) {
|
|
|
logger.error('redis.hmgetAsync.category.description:' + e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
let categoryIntro = categoryIntroRedis[1] ? {
|
...
|
...
|
|