...
|
...
|
@@ -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对象赋值
|
...
|
...
|
|