...
|
...
|
@@ -46,11 +46,6 @@ exports.getStudentsData = (channel, req) => { |
|
|
|
|
|
if (req.user.uid && req.query.collegeName && req.query.educationDegree &&
|
|
|
req.query.enrollmentYear && req.query.sign) {
|
|
|
// console.info(req.user.uid);
|
|
|
// console.info(req.query.collegeName);
|
|
|
// console.info(req.query.educationDegree);
|
|
|
// console.info(req.query.enrollmentYear);
|
|
|
// console.info(req.query.params);
|
|
|
apiMethod.push(
|
|
|
studentsApi.verifyStudent(req.user.uid, req.query.collegeName,
|
|
|
req.query.educationDegree, req.query.enrollmentYear)
|
...
|
...
|
@@ -89,8 +84,9 @@ exports.getStudentsData = (channel, req) => { |
|
|
Object.assign(responseData.realData, {proItem: stuHandler.stuProducts(result[3].data.product_list)});
|
|
|
}
|
|
|
|
|
|
if (result[4] && result[4].code === 200) {
|
|
|
Object.assign(responseData.realData, {verifyRusult: stuHandler.stuVerify(result[4].data)});
|
|
|
if (result[4]) {
|
|
|
console.info(result[4]);
|
|
|
Object.assign(responseData.realData, {verifyRusult: stuHandler.stuVerify(result[4])});
|
|
|
}
|
|
|
|
|
|
return responseData;
|
...
|
...
|
@@ -246,8 +242,8 @@ exports.getTestData = () => { |
|
|
stuNum: [1, 2, 3, 4, 5, 6, 7]
|
|
|
},
|
|
|
verifyRusult: {
|
|
|
isStudent: true,
|
|
|
prompt: '100有货币已到账'
|
|
|
status: true,
|
|
|
rank: 20
|
|
|
}
|
|
|
};
|
|
|
return respData;
|
...
|
...
|
@@ -294,7 +290,7 @@ exports.getEduLevel = () => { |
|
|
exports.verifyIdentity = (uid, params) => {
|
|
|
let pageUrl = 'http://localhost:6002/product/students?' +
|
|
|
queryString.stringify({collegeName: params.collegeName,
|
|
|
educationDegree: params.educationDegree, enrollmentYear: params.enrollmentYear}) + '&';
|
|
|
educationDegree: params.educationDegree, enrollmentYear: params.enrollmentYear});
|
|
|
|
|
|
return studentsApi.verifyIdentity(uid, params.certNo, params.name, pageUrl).then(result => {
|
|
|
return result;
|
...
|
...
|
|