Authored by weiqingting

Merge branch 'release/4.9.1.0'

@@ -97,6 +97,9 @@ const getPlatForm = (req) => { @@ -97,6 +97,9 @@ 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);
  102 +
100 yoho.isiOS = /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(userAgent); 103 yoho.isiOS = /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(userAgent);
101 yoho.isAndroid = /Android/i.test(userAgent); 104 yoho.isAndroid = /Android/i.test(userAgent);
102 yoho.isApp = /YohoBuy/i.test(req.get('User-Agent')) || (req.query.app_version && req.query.client_type); 105 yoho.isApp = /YohoBuy/i.test(req.get('User-Agent')) || (req.query.app_version && req.query.client_type);
@@ -288,7 +291,7 @@ exports.register = (req, res, next) => { @@ -288,7 +291,7 @@ exports.register = (req, res, next) => {
288 } 291 }
289 Promise.all([verifiedStudentTotal(), getEducationLevelList()]).then((arr) => { 292 Promise.all([verifiedStudentTotal(), getEducationLevelList()]).then((arr) => {
290 if (req.__USER__.isStudent) { 293 if (req.__USER__.isStudent) {
291 - refer = '/activity/student';// 所有认证过的,都跳转学生首页 294 + refer = '/activity/student?uid=' + req.__USER__.uid;// 所有认证过的,都跳转学生首页
292 295
293 296
294 res.redirect(helpers.urlFormat(refer)); 297 res.redirect(helpers.urlFormat(refer));