diff --git a/douyin/fudai/core/fudai_detail_validator.py b/douyin/fudai/core/fudai_detail_validator.py index f4e20d7..c28dc0c 100644 --- a/douyin/fudai/core/fudai_detail_validator.py +++ b/douyin/fudai/core/fudai_detail_validator.py @@ -74,10 +74,17 @@ def validate_fudai_detail(detail: Tuple, analyser: Any = None) -> Tuple[bool, st pass if not disable_content: if not content or len(content.strip()) < 2: - return False, "content_empty_or_too_short" + # 内容为空但价值和倒计时都合理时,不应判定失败(部分福袋确实无文字内容) + if prize_value_yuan > 0 and countdown_end is not None and countdown_end > 0: + pass + else: + return False, "content_empty_or_too_short" except Exception: if not content or len(content.strip()) < 2: - return False, "content_empty_or_too_short" + if prize_value_yuan > 0 and countdown_end is not None and countdown_end > 0: + pass + else: + return False, "content_empty_or_too_short" # 检查2:价值应该大于0(福袋至少应该有价值) if prize_value_yuan <= 0: