...
|
...
|
@@ -119,14 +119,14 @@ const getPlatForm = (req) => { |
|
|
if (isProduction) {
|
|
|
yoho.http = 'https:';
|
|
|
}
|
|
|
yoho.uid = uids && uids.length === 2 ? uids[1] : 8041246; // 8041246
|
|
|
yoho.uid = uids && uids.length === 2 ? uids[1] : ''; // 8041246
|
|
|
yoho.uid = req.user.uid || yoho.uid || req.query.uid || '';
|
|
|
yoho.isLogin = yoho.uid ? true : false;
|
|
|
return co(function*() {
|
|
|
let data = yield getUser(yoho.uid);
|
|
|
|
|
|
yoho.isStudent = data.data && data.data.vip_info && data.data.vip_info.is_student ? true : false;
|
|
|
yoho.isStudent = false;
|
|
|
// yoho.isStudent = false;
|
|
|
return yoho;
|
|
|
})();
|
|
|
|
...
|
...
|
|