diff --git a/backend/app/services/discovery.py b/backend/app/services/discovery.py index 711044a..028b90c 100644 --- a/backend/app/services/discovery.py +++ b/backend/app/services/discovery.py @@ -19,7 +19,9 @@ ANALYZE_MATCH_PROMPT = """你是外贸客户分析专家。分析目标公司的 "contact_info": { "emails": ["找到的邮箱"], "phones": ["找到的电话"], - "social": ["LinkedIn等社媒链接"] + "social": ["LinkedIn等社媒链接"], + "wechat": "找到的微信号", + "whatsapp": "找到的 WhatsApp 号码" } } @@ -292,6 +294,7 @@ URL: {company_url} "match_reason": "无法获取网页内容进行分析,建议手动查看", "url": url, "provider": "template", + "contact_info": {"emails": [], "phones": [], "social": [], "wechat": "", "whatsapp": ""}, } def _template_outreach(self, company: Dict[str, Any], product: Dict[str, Any]) -> Dict[str, Any]: diff --git a/user-frontend/src/views/Discovery.vue b/user-frontend/src/views/Discovery.vue index 4615591..1cc332a 100644 --- a/user-frontend/src/views/Discovery.vue +++ b/user-frontend/src/views/Discovery.vue @@ -12,23 +12,46 @@
{{ r.description }}
+ +- 联系方式: + 网址: {{ r.contact.substring(0, 50) }}{{ r.contact.length > 50 ? '…' : '' }} {{ r.contact }}
-