Authored by 郝肖肖

'seo商品不存在404'

... ... @@ -318,7 +318,9 @@ const keyId = (req, res, next) => {
return searchModel.getSearchKeywordDataById(req.params.id, params, req.user.uid).then(result => {
let queryKey = result.queryKey;
if (!result) {
return next();
}
// 唤起 APP 的路径
res.locals.appPath = `yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.list","params":${JSON.stringify(params)}}`;
... ...
... ... @@ -589,8 +589,7 @@ const getSearchKeywordDataById = (id, params, uid) => {
['get', `global:yoho:seo:keywords:id:${id}`]
]).then(redisData => {
if (!redisData[0]) {
return Promise.reject('get redis canpin keywords by id error!' +
`key: global:yoho:seo:keywords:id:${id} value: ${redisData[0]}`);
return false;
}
redisData = JSON.parse(redisData[0]);
... ...