Task #1611 v2: 修复过去日期分支pass导致return False的bug
This commit is contained in:
+4
-1
@@ -6448,7 +6448,10 @@ class MessageMonitor:
|
|||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
if _has_fresh_ts:
|
if _has_fresh_ts:
|
||||||
pass # 继续走后续逻辑放行
|
# Task #1611 修复:过去日期+新鲜时间戳 → 放行(不是pass!)
|
||||||
|
# 之前错误用pass,代码会继续执行到最后的return False导致丢弃
|
||||||
|
logger.debug(f"[ocr] 过滤器1结果: 过去日期+新鲜时间戳,放行")
|
||||||
|
return True
|
||||||
else:
|
else:
|
||||||
logger.debug(f"[ocr] 过滤器1结果: 检测到过去日期且无新鲜时间戳,丢弃历史消息: {text[:80]!r}")
|
logger.debug(f"[ocr] 过滤器1结果: 检测到过去日期且无新鲜时间戳,丢弃历史消息: {text[:80]!r}")
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user