Authored by weiqingting

Merge branch 'release/4.9.1.0'

... ... @@ -97,6 +97,9 @@ const getPlatForm = (req) => {
let isNewVersion = false;
const isProduction = process.env.NODE_ENV === 'production';
// console.log(req.get('User-Agent'));
// console.log(req.query.uid);
yoho.isiOS = /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(userAgent);
yoho.isAndroid = /Android/i.test(userAgent);
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) => {
}
Promise.all([verifiedStudentTotal(), getEducationLevelList()]).then((arr) => {
if (req.__USER__.isStudent) {
refer = '/activity/student';// 所有认证过的,都跳转学生首页
refer = '/activity/student?uid=' + req.__USER__.uid;// 所有认证过的,都跳转学生首页
res.redirect(helpers.urlFormat(refer));
... ...