Authored by weiqingting

测试 uid

... ... @@ -97,8 +97,8 @@ const getPlatForm = (req) => {
let isNewVersion = false;
const isProduction = process.env.NODE_ENV === 'production';
console.log(req.get('User-Agent'));
console.log(req.query.uid);
// 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);
... ... @@ -291,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));
... ...