Authored by htoooth

refactor

... ... @@ -15,10 +15,10 @@ module.exports = () => {
let getVip = Fp.nth(2);
let getToken = Fp.nth(3);
req.user.name = getName(uidCookie); //0
req.user.uid = cookie.getUid(req); //1
req.user.vip = getVip(uidCookie); //2
req.user.token = getToken(uidCookie); //3
req.user.name = getName(uidCookie); // 0
req.user.uid = cookie.getUid(req); // 1
req.user.vip = getVip(uidCookie); // 2
req.user.token = getToken(uidCookie); // 3
req.user.isStudent = req.cookies.isStudent || 0;
}
... ...