diff --git a/routers/index.js b/routers/index.js index d6bb97f..52e4274 100644 --- a/routers/index.js +++ b/routers/index.js @@ -66,8 +66,8 @@ router.post('/unreserve', (req, res)=> { errors.push('日期应该是1到7之间的数字'); } - if (!time || time < 1 || time > 5) { - errors.push('时间应该是1到5之间的数字'); + if (!time || time < 1 || time > 6) { + errors.push('时间应该是1到6之间的数字'); } if(errors.length != 0) {