Authored by 郭成尧

decodeURIComponent

... ... @@ -219,6 +219,8 @@ const shopFav = (req, res) => {
// 品类落地页
const category = (req, res, next) => {
let seoTitle = '';
if (req.query) {
_.forEach(req.query, (perParam, index) => {
req.query[index] = stringProcess.paramsFilter(perParam);
... ... @@ -226,7 +228,12 @@ const category = (req, res, next) => {
}
let params = Object.assign({}, req.query);
let seoTitle = decodeURIComponent(req.query.title || req.query.sort_name || '商品列表');
try {
seoTitle = decodeURIComponent(req.query.title || req.query.sort_name || '商品列表');
} catch (e) {
logger.error('decodeURIComponent seoTitle: ' + e);
}
/* 勿修改,唤起 APP 使用 */
let appParams = Object.assign({}, req.query, {
... ...