Authored by htoooth

refactor

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