Authored by zhangxiaoru

报错日志

... ... @@ -50,6 +50,7 @@ const editor = (req, res, next) => {
let authorData = datas[0],
articleListData = datas[1];
let build = [];
let name = authorData.data ? authorData.data.name : '';
if (articleListData.data && articleListData.data.list && articleListData.data.list.artList) {
articleListData.data.list.artList.forEach(articleData => {
... ... @@ -67,9 +68,9 @@ const editor = (req, res, next) => {
res.render('index/list', Object.assign({
page: 'index-editor',
title: `潮流编辑${authorData.data.name}|YOHO!BUY有货`,
keywords: `潮流编辑${authorData.data.name}`,
description: `YOHO!BUY有货潮流编辑${authorData.data.name}!`,
title: `潮流编辑${name}|YOHO!BUY有货`,
keywords: `潮流编辑${name}`,
description: `YOHO!BUY有货潮流编辑${name}!`,
guangList: true,
gender: gender,
guang: {
... ...
... ... @@ -91,8 +91,7 @@ const getDetailData = (req, res, next) => {
let udid = req.sessionID || 'yoho';
let gender = req.query.gender || req.cookies._Channel && channels[req.cookies._Channel] || '1,3';
let isApp = req.query.app_version || req.query.appVersion || false;
let userAgent = req.get('User-Agent');
let isWeixin = userAgent.includes('MicroMessenger'); // 标识是否是微信访问
let isWeixin = req.yoho.isWechat; // 标识是否是微信访问
if (isApp) {
if (req.query.uid) {
... ...