This commit is contained in:
YuhangQ 2023-09-24 14:36:14 +08:00
parent 7cf25a1050
commit b82f020b53

View File

@ -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) {