Merge branch 'master' into release/node-gzip
Showing
1 changed file
with
3 additions
and
3 deletions
@@ -328,15 +328,15 @@ exports.school = (req, res, next) => { | @@ -328,15 +328,15 @@ exports.school = (req, res, next) => { | ||
328 | exports.verifyidentity = (req, res, next) => { | 328 | exports.verifyidentity = (req, res, next) => { |
329 | // let uid=req.user.id; | 329 | // let uid=req.user.id; |
330 | let params = req.body; | 330 | let params = req.body; |
331 | + let uid = req.__USER__.uid; | ||
331 | let url = 'http://m.yohobuy.com/activity/student/verify?' + | 332 | let url = 'http://m.yohobuy.com/activity/student/verify?' + |
332 | queryString.stringify({ | 333 | queryString.stringify({ |
333 | college_name: params.college_name, | 334 | college_name: params.college_name, |
334 | education_degree: params.education_degree, | 335 | education_degree: params.education_degree, |
335 | - enrollment_year: params.enrollment_year | 336 | + enrollment_year: params.enrollment_year, |
337 | + uid: req.__USER__.isApp ? uid : '', | ||
336 | }) + '&'; | 338 | }) + '&'; |
337 | 339 | ||
338 | - let uid = req.__USER__.uid; | ||
339 | - | ||
340 | verifyIdentity(uid, params.cert_no, params.name, url).then((result) => { | 340 | verifyIdentity(uid, params.cert_no, params.name, url).then((result) => { |
341 | res.json(result); | 341 | res.json(result); |
342 | }).catch(next); | 342 | }).catch(next); |
-
Please register or login to post a comment