Authored by 王水玲

phoneReg.expire 读不到设置默认值为0

@@ -230,7 +230,7 @@ class Reg { @@ -230,7 +230,7 @@ class Reg {
230 230
231 sendCodeBusyBoy(req, res, next) { 231 sendCodeBusyBoy(req, res, next) {
232 let count = _.get(req.session, 'phoneReg.count'); 232 let count = _.get(req.session, 'phoneReg.count');
233 - let expire = _.get(req.session, 'phoneReg.expire'); 233 + let expire = _.get(req.session, 'phoneReg.expire') || 0;
234 234
235 if (count) { 235 if (count) {
236 return next(); 236 return next();