Showing
1 changed file
with
1 additions
and
1 deletions
@@ -70,7 +70,7 @@ exports.school = (req, res, next) => { | @@ -70,7 +70,7 @@ exports.school = (req, res, next) => { | ||
70 | exports.checkStudent = (req, res, next) => { | 70 | exports.checkStudent = (req, res, next) => { |
71 | 71 | ||
72 | let params = { | 72 | let params = { |
73 | - uid: req.user.uid | 73 | + uid: req.query.uid || req.user.uid, |
74 | }; | 74 | }; |
75 | 75 | ||
76 | indexModel.checkStudent(params).then((result) => { | 76 | indexModel.checkStudent(params).then((result) => { |
-
Please register or login to post a comment