Showing
3 changed files
with
3 additions
and
3 deletions
@@ -25,7 +25,7 @@ const index = (req, res, next) => { | @@ -25,7 +25,7 @@ const index = (req, res, next) => { | ||
25 | }); | 25 | }); |
26 | 26 | ||
27 | // 清除 session | 27 | // 清除 session |
28 | - req.session = null; | 28 | + req.session = {}; |
29 | 29 | ||
30 | service.indexPageDataAsync() | 30 | service.indexPageDataAsync() |
31 | .then(result => { | 31 | .then(result => { |
@@ -117,7 +117,7 @@ const local = { | @@ -117,7 +117,7 @@ const local = { | ||
117 | domain: config.cookieDomain | 117 | domain: config.cookieDomain |
118 | }); | 118 | }); |
119 | 119 | ||
120 | - req.session = null; | 120 | + req.session = {}; |
121 | 121 | ||
122 | let bindMobile = _.trim(req.query.bindMobile || ''); | 122 | let bindMobile = _.trim(req.query.bindMobile || ''); |
123 | let bindArea = '+' + _.trim(req.query.bindArea || '86'); | 123 | let bindArea = '+' + _.trim(req.query.bindArea || '86'); |
@@ -57,7 +57,7 @@ | @@ -57,7 +57,7 @@ | ||
57 | "request-ip": "^1.2.2", | 57 | "request-ip": "^1.2.2", |
58 | "serve-favicon": "^2.3.0", | 58 | "serve-favicon": "^2.3.0", |
59 | "uuid": "^2.0.2", | 59 | "uuid": "^2.0.2", |
60 | - "yoho-node-lib": "0.2.1", | 60 | + "yoho-node-lib": "0.2.2", |
61 | "yoho-zookeeper": "^1.0.4" | 61 | "yoho-zookeeper": "^1.0.4" |
62 | }, | 62 | }, |
63 | "devDependencies": { | 63 | "devDependencies": { |
-
Please register or login to post a comment