|
@@ -9,7 +9,7 @@ import uuid
|
|
from app.config.config import DevelopmentConfig, ProductionConfig
|
|
from app.config.config import DevelopmentConfig, ProductionConfig
|
|
|
|
|
|
# 导入原有的函数和模型
|
|
# 导入原有的函数和模型
|
|
-from app.core.data_parse.parse import (
|
|
|
|
|
|
+from app.core.data_parse.parse_system import (
|
|
BusinessCard, DuplicateBusinessCard,
|
|
BusinessCard, DuplicateBusinessCard,
|
|
parse_text_with_qwen25VLplus, check_duplicate_business_card,
|
|
parse_text_with_qwen25VLplus, check_duplicate_business_card,
|
|
update_career_path, create_main_card_with_duplicates
|
|
update_career_path, create_main_card_with_duplicates
|
|
@@ -196,7 +196,7 @@ def add_business_card(card_data, image_file=None):
|
|
existing_card = duplicate_check['existing_card']
|
|
existing_card = duplicate_check['existing_card']
|
|
|
|
|
|
# 导入手机号码处理函数
|
|
# 导入手机号码处理函数
|
|
- from app.core.data_parse.parse import normalize_mobile_numbers, merge_mobile_numbers
|
|
|
|
|
|
+ from app.core.data_parse.parse_system import normalize_mobile_numbers, merge_mobile_numbers
|
|
|
|
|
|
# 更新基本信息
|
|
# 更新基本信息
|
|
existing_card.name_en = card_data.get('name_en', existing_card.name_en)
|
|
existing_card.name_en = card_data.get('name_en', existing_card.name_en)
|
|
@@ -307,7 +307,7 @@ def add_business_card(card_data, image_file=None):
|
|
initial_career_path = [initial_entry]
|
|
initial_career_path = [initial_entry]
|
|
|
|
|
|
# 导入手机号码处理函数
|
|
# 导入手机号码处理函数
|
|
- from app.core.data_parse.parse import normalize_mobile_numbers
|
|
|
|
|
|
+ from app.core.data_parse.parse_system import normalize_mobile_numbers
|
|
|
|
|
|
# 处理年龄字段,确保是有效的整数或None
|
|
# 处理年龄字段,确保是有效的整数或None
|
|
age_value = None
|
|
age_value = None
|