From b82f020b531d4b6bbb54f38c94b37214e53c8bb8 Mon Sep 17 00:00:00 2001 From: YuhangQ Date: Sun, 24 Sep 2023 14:36:14 +0800 Subject: [PATCH] fix bug --- routers/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {