1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-17 23:13:03 +08:00

fix(LibReserve): add the check for empty value of 'seat_id' in 'reserve_info'

This commit is contained in:
2025-11-08 11:56:21 +08:00
parent d2cef258aa
commit 7a599c4f63
+2
View File
@@ -137,6 +137,8 @@ class LibReserve(LibOperator):
raise ValueError(f"房间 '{reserve_info['room']}' 不存在")
if reserve_info.get("seat_id") is None:
raise ValueError("未指定座位")
if reserve_info["seat_id"] == "":
raise ValueError("未指定座位号")
except ValueError as e:
self._showTrace(
f"预约信息错误 ! : {e}, "\