Showing
2 changed files
with
1 additions
and
1 deletions
@@ -80,7 +80,7 @@ app.use(session({ | @@ -80,7 +80,7 @@ app.use(session({ | ||
80 | app.use((req, res, next) => { | 80 | app.use((req, res, next) => { |
81 | req.user = {}; // 全局的用户数据 | 81 | req.user = {}; // 全局的用户数据 |
82 | req.yoho = {}; // req和res绑定yoho对象,用于传递全局数据, 如req.yoho.channel等 | 82 | req.yoho = {}; // req和res绑定yoho对象,用于传递全局数据, 如req.yoho.channel等 |
83 | - req.app.locals.wap = app.locals.wap; //zookeper对象赋值 | 83 | + req.app.locals.wap = app.locals.wap; // zookeper对象赋值 |
84 | if (!req.session.id) { | 84 | if (!req.session.id) { |
85 | req.session.id = uuid.v4(); | 85 | req.session.id = uuid.v4(); |
86 | } | 86 | } |
-
Please register or login to post a comment