...
|
...
|
@@ -25,8 +25,8 @@ exports.index = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
let params = {
|
|
|
uid: req.user.uid,
|
|
|
shareUid: req.query.uid
|
|
|
uid: req.query.uid || req.user.uid,
|
|
|
shareUid: req.query.userUid
|
|
|
};
|
|
|
|
|
|
indexModel.index(params).then(result => {
|
...
|
...
|
@@ -70,7 +70,7 @@ exports.school = (req, res, next) => { |
|
|
exports.checkStudent = (req, res, next) => {
|
|
|
|
|
|
let params = {
|
|
|
uid: req.user.uid
|
|
|
uid: req.query.uid || req.user.uid,
|
|
|
};
|
|
|
|
|
|
indexModel.checkStudent(params).then((result) => {
|
...
|
...
|
@@ -93,7 +93,7 @@ exports.schoolNum = (req, res, next) => { |
|
|
exports.addStudent = (req, res, next) => {
|
|
|
|
|
|
let params = {
|
|
|
uid: req.query.uid,
|
|
|
uid: req.query.userUid,
|
|
|
shareUid: req.query.shareUid
|
|
|
};
|
|
|
|
...
|
...
|
|