Showing
1 changed file
with
3 additions
and
3 deletions
@@ -97,8 +97,8 @@ const getPlatForm = (req) => { | @@ -97,8 +97,8 @@ const getPlatForm = (req) => { | ||
97 | let isNewVersion = false; | 97 | let isNewVersion = false; |
98 | const isProduction = process.env.NODE_ENV === 'production'; | 98 | const isProduction = process.env.NODE_ENV === 'production'; |
99 | 99 | ||
100 | - console.log(req.get('User-Agent')); | ||
101 | - console.log(req.query.uid); | 100 | + // console.log(req.get('User-Agent')); |
101 | + // console.log(req.query.uid); | ||
102 | 102 | ||
103 | yoho.isiOS = /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(userAgent); | 103 | yoho.isiOS = /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(userAgent); |
104 | yoho.isAndroid = /Android/i.test(userAgent); | 104 | yoho.isAndroid = /Android/i.test(userAgent); |
@@ -291,7 +291,7 @@ exports.register = (req, res, next) => { | @@ -291,7 +291,7 @@ exports.register = (req, res, next) => { | ||
291 | } | 291 | } |
292 | Promise.all([verifiedStudentTotal(), getEducationLevelList()]).then((arr) => { | 292 | Promise.all([verifiedStudentTotal(), getEducationLevelList()]).then((arr) => { |
293 | if (req.__USER__.isStudent) { | 293 | if (req.__USER__.isStudent) { |
294 | - refer = '/activity/student';// 所有认证过的,都跳转学生首页 | 294 | + refer = '/activity/student?uid='+req.__USER__.uid;// 所有认证过的,都跳转学生首页 |
295 | 295 | ||
296 | 296 | ||
297 | res.redirect(helpers.urlFormat(refer)); | 297 | res.redirect(helpers.urlFormat(refer)); |
-
Please register or login to post a comment