fix bug
This commit is contained in:
parent
7cf25a1050
commit
b82f020b53
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user