Authored by wenjiekong

初始时,判断用户是否是学生

@@ -26,7 +26,7 @@ exports.index = (req, res, next) => { @@ -26,7 +26,7 @@ exports.index = (req, res, next) => {
26 if ('isStudent' in req.user) { 26 if ('isStudent' in req.user) {
27 result.realData.verifyRusult = {isStudent: req.user.isStudent === 1 ? true : false}; 27 result.realData.verifyRusult = {isStudent: req.user.isStudent === 1 ? true : false};
28 } 28 }
29 - 29 +
30 res.render('students/index', result); 30 res.render('students/index', result);
31 31
32 }).catch(next); 32 }).catch(next);