From f0538ab3fcd5fc4d4de8f2a44aa86036118243b6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 9 Jan 2026 20:28:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E9=A2=84=E7=BA=A6?= =?UTF-8?q?=E5=9B=9E=E9=80=80=E6=A0=A1=E9=AA=8C=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A0=87=E9=A2=98=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E5=A4=B1=E8=B4=A5=E5=88=A4=E6=96=AD=EF=BC=9B=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=AB=98=E4=BB=B7=E5=80=BC=E6=88=BF=E9=97=B4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reservation/douyin_reservation_verify.py | 12 +++++++---- state/high_value_rooms.json | 20 +++++++++++++++++-- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/douyin/reservation/douyin_reservation_verify.py b/douyin/reservation/douyin_reservation_verify.py index 2116738..244986a 100644 --- a/douyin/reservation/douyin_reservation_verify.py +++ b/douyin/reservation/douyin_reservation_verify.py @@ -401,11 +401,15 @@ def validate_back_to_reservation( pass # 强不匹配:仅返回失败(不做任何回退动作) + # 当标题为空时也视为失败,因为无法确认是否在正确直播间 if ( - current_title - and (expected_title not in current_title) - and (current_title not in expected_title) - and ratio < 0.45 + (not current_title) # 标题为空,读取失败 + or ( + current_title + and (expected_title not in current_title) + and (current_title not in expected_title) + and ratio < 0.45 + ) ): try: analyser._log_kv( diff --git a/state/high_value_rooms.json b/state/high_value_rooms.json index dd7fea2..0deae71 100644 --- a/state/high_value_rooms.json +++ b/state/high_value_rooms.json @@ -1,7 +1,7 @@ { - "updated_ts": 1767961153.6681945, + "updated_ts": 1767961508.886063, "reason": "reservation", - "total": 159, + "total": 160, "rooms": [ { "first_seen_ts": 1765799932.458368, @@ -2713,6 +2713,22 @@ "last_prize_value_yuan": 1999.0, "max_prize_value_yuan": 1999.0, "room_title": "丰源百货仓" + }, + { + "first_seen_ts": 1767961508.886063, + "last_seen_ts": 1767961508.886063, + "seen_count": 1, + "pos_seen": 8, + "pos_updated_ts": 1767961508.886063, + "room_title_raw_last": "天美人菲菲", + "alias_raw": [ + "天美人菲菲" + ], + "key_kind": "norm", + "last_content": "", + "last_prize_value_yuan": 599.0, + "max_prize_value_yuan": 599.0, + "room_title": "天美人菲菲" } ] } \ No newline at end of file