Showing
1 changed file
with
1 additions
and
0 deletions
@@ -19,6 +19,7 @@ module.exports = () => { | @@ -19,6 +19,7 @@ module.exports = () => { | ||
19 | if (req.user.uid && req.cookies.isStudent) { | 19 | if (req.user.uid && req.cookies.isStudent) { |
20 | req.user.isStudent = req.cookies.isStudent; | 20 | req.user.isStudent = req.cookies.isStudent; |
21 | } | 21 | } |
22 | + | ||
22 | // 从 SESSION 中获取到当前登录用户的 UID | 23 | // 从 SESSION 中获取到当前登录用户的 UID |
23 | // if (req.session && _.isNumber(req.session._LOGIN_UID)) { | 24 | // if (req.session && _.isNumber(req.session._LOGIN_UID)) { |
24 | // req.user.uid = req.session._LOGIN_UID; | 25 | // req.user.uid = req.session._LOGIN_UID; |
-
Please register or login to post a comment