Commit 41905ad8 authored by 杨翌文's avatar 杨翌文

取消自动身份

parent ba69d77d
...@@ -53,22 +53,6 @@ module.exports = function(app, config) { ...@@ -53,22 +53,6 @@ module.exports = function(app, config) {
next(); next();
}); });
app.use(function(req, res, next) {
if (!req.session.user ) {
req.session.user = {
ent_code: 100001
};
}
if (!req.session.openUser) {
req.session.openUser = {
openId: '1111',
integral: '100',
exp: '100'
};
}
next(null);
});
//设置创建用户中间件 //设置创建用户中间件
app.use('/v1/forum/*',forumUser.identifyUser()); app.use('/v1/forum/*',forumUser.identifyUser());
...@@ -100,4 +84,4 @@ app.use('/v1/forum/*',forumUser.identifyUser()); ...@@ -100,4 +84,4 @@ app.use('/v1/forum/*',forumUser.identifyUser());
// }); // });
// }); // });
}; };
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment