diff --git a/src/main/python/cn/yinlihupo/ylhp_hr_2_0/service/crawler/boss_crawler.py b/src/main/python/cn/yinlihupo/ylhp_hr_2_0/service/crawler/boss_crawler.py index f9f8c42..52ab225 100644 --- a/src/main/python/cn/yinlihupo/ylhp_hr_2_0/service/crawler/boss_crawler.py +++ b/src/main/python/cn/yinlihupo/ylhp_hr_2_0/service/crawler/boss_crawler.py @@ -138,13 +138,6 @@ class BossCrawler(BaseCrawler): # 获取 geekCard(Boss SDK 的数据通常在 geekCard 中) geek_card = getattr(geek_data, 'geekCard', None) or geek_data - # 调试:打印 geek_data 和 geek_card 的所有属性 - print(f"[DEBUG] geek_data type: {type(geek_data)}") - print(f"[DEBUG] geek_data attrs: {dir(geek_data) if hasattr(geek_data, '__dict__') else 'no __dict__'}") - if geek_card is not geek_data: - print(f"[DEBUG] geek_card type: {type(geek_card)}") - print(f"[DEBUG] geek_card attrs: {dir(geek_card) if hasattr(geek_card, '__dict__') else 'no __dict__'}") - # 从 SDK 返回的数据中提取候选人信息 source_id = (getattr(geek_data, 'geekId', '') or getattr(geek_data, 'encryptGeekId', '') or @@ -155,8 +148,6 @@ class BossCrawler(BaseCrawler): name = (getattr(geek_card, 'geekName', '') or getattr(geek_data, 'geekName', '')) - print(f"[DEBUG] Parsed name: '{name}', source_id: '{source_id}'") - # 解析薪资期望(Boss SDK 使用 salary 或 lowSalary/highSalary) salary_str = (getattr(geek_card, 'salary', '') or getattr(geek_data, 'salary', '')) diff --git a/src/main/python/cn/yinlihupo/ylhp_hr_2_0/service/ingestion/unified_ingestion_service.py b/src/main/python/cn/yinlihupo/ylhp_hr_2_0/service/ingestion/unified_ingestion_service.py index 3770a3a..6462e54 100644 --- a/src/main/python/cn/yinlihupo/ylhp_hr_2_0/service/ingestion/unified_ingestion_service.py +++ b/src/main/python/cn/yinlihupo/ylhp_hr_2_0/service/ingestion/unified_ingestion_service.py @@ -137,12 +137,6 @@ class UnifiedIngestionService: # 2. 数据验证 validation_result = self._validate(normalized) if not validation_result.is_valid: - # 打印原始数据和标准化数据,方便排查 - print(f"[数据验证失败] 错误: {validation_result.error_messages}") - print(f"[数据验证失败] 原始数据: {raw_data}") - print(f"[数据验证失败] 标准化后候选人: name={normalized.candidate.name}, " - f"source={normalized.candidate.source}, source_id={normalized.candidate.source_id}") - print(f"[数据验证失败] 标准化后简历: raw_content长度={len(normalized.resume.raw_content) if normalized.resume.raw_content else 0}") return IngestionResult.failed_result( errors=validation_result.error_messages, message="数据验证失败"