...
|
...
|
@@ -103,8 +103,6 @@ const local = { |
|
|
// 设置登录有效时间30分钟, 防机器刷,cache不稳定,改为cookie
|
|
|
res.cookie('LE' + md5('_LOGIN_EXPIRE'), (new Date()).getTime() / 1000 + 1800);
|
|
|
|
|
|
console.log(req.user.uid)
|
|
|
|
|
|
// 清除cookie
|
|
|
res.clearCookie('_UID', {
|
|
|
domain: 'yohobuy.com'
|
...
|
...
|
|