Authored by 周少峰

verify

... ... @@ -77,9 +77,9 @@ exports.eduLevel = (req, res, next) => {
* @return {[type]} [description]
*/
exports.verify = (req, res, next) => {
studentsModel.verify(req.user.uid, req.query).then(result => {
res.json(result);
}).catch(next);
}
\ No newline at end of file
};
... ...
... ... @@ -85,7 +85,7 @@ exports.verifyIdentity = (uid, certNo, name, pageUrl) => {
* 学籍验证
* @return
*/
exports.verifyIdentity = (uid, collegeName, educationDegree,enrollmentYear) => {
exports.verifyIdentity = (uid, collegeName, educationDegree, enrollmentYear) => {
let finalParams = {
method: 'method=app.student.verifyStudent',
uid: uid,
... ...
... ... @@ -71,7 +71,7 @@ exports.stuProducts = (data) => {
_.forEach(data, (value, key) => {
delete data[key].discount;
if (value.studentPrice) {
Object.assign(data[key], {forStu: true});
}
... ...
... ... @@ -65,7 +65,7 @@ exports.getStudentsData = (channel) => {
}
// if (result[2].code === 200) {
// }
if (result[3].code === 200) {
... ... @@ -256,4 +256,4 @@ exports.verifyStudents = (uid, params) => {
return studentsApi.verifyIdentity(uid, params.certNo, params.name, pageUrl).then(result => {
return result;
});
};
\ No newline at end of file
};
... ...