Authored by 毕凯

Update app.js

Showing 1 changed file with 0 additions and 1 deletions
... ... @@ -92,7 +92,6 @@ app.use(compression());
require('./doraemon/middleware/yoho-session')(app);
app.use((req, res, next) => {
logger.info(req.headers)
req.user = {}; // 全局的用户数据
req.yoho = {}; // req和res绑定yoho对象,用于传递全局数据, 如req.yoho.channel等
req.app.locals.wap = app.locals.wap; // zookeper对象赋值
... ...