国内可访问服务替换排查:新增蜜罐反垃圾字段 + CDN 加速域名配置

This commit is contained in:
2026-08-07 14:49:00 +08:00
parent d6503bb46f
commit 16e4f97e74
6 changed files with 38 additions and 3 deletions
+7
View File
@@ -41,6 +41,13 @@ class LeadSubmitView(APIView):
{"error": {"code": "NOT_FOUND", "message": "表单不存在"}}, status=404
)
# 蜜罐反垃圾:honeypot 字段非空说明是自动化脚本提交,直接返回“成功”假象,
# 不落库、不发通知邮件,避免打草惊蛇(详见设计文档 §2.15 验证码/反垃圾方案)。
if serializer.validated_data.get("website"):
return Response(
{"success": True, "message": form_def.success_message}, status=201
)
lead = Lead.objects.create(
form=form_def,
data=serializer.validated_data["data"],