Showing
1 changed file
with
2 additions
and
1 deletions
@@ -18,7 +18,8 @@ const jump = (req, res) => { | @@ -18,7 +18,8 @@ const jump = (req, res) => { | ||
18 | let encodeStr = Fn.pipe(decodeURIComponent, _.partial(crypto.encryption, null), encodeURIComponent); | 18 | let encodeStr = Fn.pipe(decodeURIComponent, _.partial(crypto.encryption, null), encodeURIComponent); |
19 | 19 | ||
20 | res.cookie('_QYH_UNION', encodeStr(_QYH_UNION), { | 20 | res.cookie('_QYH_UNION', encodeStr(_QYH_UNION), { |
21 | - domain: config.cookieDomain | 21 | + domain: config.cookieDomain, |
22 | + maxAge: 60 * 60 * 24 * 1000 // 一天 | ||
22 | }); | 23 | }); |
23 | 24 | ||
24 | res.redirect(target || helpers.urlFormat('')); | 25 | res.redirect(target || helpers.urlFormat('')); |
-
Please register or login to post a comment