Authored by htoooth

fix session reset

@@ -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 = {}; 28 + req.session.reset();
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 = {}; 120 + req.session.reset();
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');