feat: 优化当前福袋内容标识的设置逻辑,增强代码可读性

This commit is contained in:
Your Name committed 2026-01-17 09:08:23 +08:00
1 parent a724de4094
commit c091e4d3f0
2 files changed
+9

No files matched your search

+6
View File
@@ -3199,6 +3199,12 @@ class fudai_analyse:
self._last_fudai_detail_tuple = detail
self._fudai_detail_first_read = True
# 设置当前福袋的内容标识(从 detail tuple 的第一个元素获取)
if detail and isinstance(detail, tuple) and len(detail) >= 1:
self._current_fudai_content = str(
detail[0] if detail[0] else ""
)
# 映射表已在并行OCR中记录,这里不再重复记录
self._log_kv(
"流程",
@@ -1875,6 +1875,9 @@ def process_reservation_attend_window(
from douyin.reservation import (
douyin_reservation_handler,
)
from douyin.reservation.douyin_reservation_handler import (
ReservationHandler,
)
current_pos = (
ReservationHandler.find_room_pos_by_title(