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

取消自动身份

parent ba69d77d
......@@ -53,22 +53,6 @@ module.exports = function(app, config) {
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());
......
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