Authored by 周少峰

students intval

@@ -23,7 +23,7 @@ exports.index = (req, res, next) => { @@ -23,7 +23,7 @@ exports.index = (req, res, next) => {
23 23
24 studentsModel.getStudentsData(channel, req).then(result => { 24 studentsModel.getStudentsData(channel, req).then(result => {
25 25
26 - if ('isStudent' in req.user && req.user.isStudent === 1) { 26 + if ('isStudent' in req.user && parseInt(req.user.isStudent, 10) === 1) {
27 result.realData.verifyRusult = {isStudent: true}; 27 result.realData.verifyRusult = {isStudent: true};
28 } 28 }
29 29