...
|
...
|
@@ -19,6 +19,7 @@ module.exports = () => { |
|
|
if (req.user.uid && req.cookies.isStudent) {
|
|
|
req.user.isStudent = req.cookies.isStudent;
|
|
|
}
|
|
|
|
|
|
// 从 SESSION 中获取到当前登录用户的 UID
|
|
|
// if (req.session && _.isNumber(req.session._LOGIN_UID)) {
|
|
|
// req.user.uid = req.session._LOGIN_UID;
|
...
|
...
|
|