Authored by 郭成尧

seoTitle

@@ -219,7 +219,7 @@ const shopFav = (req, res) => { @@ -219,7 +219,7 @@ const shopFav = (req, res) => {
219 219
220 // 品类落地页 220 // 品类落地页
221 const category = (req, res, next) => { 221 const category = (req, res, next) => {
222 - let seoTitle = ''; 222 + let seoTitle = '商品列表';
223 223
224 if (req.query) { 224 if (req.query) {
225 _.forEach(req.query, (perParam, index) => { 225 _.forEach(req.query, (perParam, index) => {
@@ -230,9 +230,8 @@ const category = (req, res, next) => { @@ -230,9 +230,8 @@ const category = (req, res, next) => {
230 let params = Object.assign({}, req.query); 230 let params = Object.assign({}, req.query);
231 231
232 try { 232 try {
233 - seoTitle = decodeURIComponent(req.query.title || req.query.sort_name) || '商品列表'; 233 + seoTitle = decodeURIComponent(req.query.title || req.query.sort_name);
234 } catch (e) { 234 } catch (e) {
235 - seoTitle = '商品列表';  
236 logger.error('decodeURIComponent seoTitle: ' + e); 235 logger.error('decodeURIComponent seoTitle: ' + e);
237 } 236 }
238 237