...
|
...
|
@@ -80,7 +80,7 @@ app.use(session({ |
|
|
app.use((req, res, next) => {
|
|
|
req.user = {}; // 全局的用户数据
|
|
|
req.yoho = {}; // req和res绑定yoho对象,用于传递全局数据, 如req.yoho.channel等
|
|
|
req.app.locals.wap = app.locals.wap; //zookeper对象赋值
|
|
|
req.app.locals.wap = app.locals.wap; // zookeper对象赋值
|
|
|
if (!req.session.id) {
|
|
|
req.session.id = uuid.v4();
|
|
|
}
|
...
|
...
|
|