...
|
...
|
@@ -92,6 +92,7 @@ app.use(compression()); |
|
|
require('./doraemon/middleware/yoho-session')(app);
|
|
|
|
|
|
app.use((req, res, next) => {
|
|
|
console.log(req)
|
|
|
req.user = {}; // 全局的用户数据
|
|
|
req.yoho = {}; // req和res绑定yoho对象,用于传递全局数据, 如req.yoho.channel等
|
|
|
req.app.locals.wap = app.locals.wap; // zookeper对象赋值
|
...
|
...
|
|