预约: 回退成功后更新映射表文件以覆盖原本的
This commit is contained in:
1 parent
8345121bfe
commit
33119a8200
1 file changed
+6
@@ -702,6 +702,12 @@ class ReservationHandler:
|
||||
|
||||
# 回退过程中只执行回退操作,不进行校验;校验将在 process_reservation_attend_window 中统一进行。
|
||||
# 只有在实际执行了滑动(moved=True)时返回 True,避免在未移动时被误判为“回退成功”。
|
||||
if moved:
|
||||
# 回退成功后,更新映射表文件以覆盖原本的
|
||||
try:
|
||||
_dump_room_pos_map_to_state(analyser)
|
||||
except Exception:
|
||||
pass
|
||||
return bool(moved)
|
||||
|
||||
@staticmethod # type: ignore[misc]
|
||||
|
||||
Reference in new issue
Block a user