Authored by wenjiekong

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

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