phoneReg.expire 读不到设置默认值为0
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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(); |
-
Please register or login to post a comment