feat: 更新预约回退校验逻辑,增加标题为空时的失败判断;更新高价值房间数据
This commit is contained in:
1 parent
da272de7f8
commit
f0538ab3fc
2 files changed
+26
-6
No files matched your search
@@ -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(
|
||||
|
||||
@@ -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": "天美人菲菲"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user