From c8396d9152a5f091638b51ee0df455a4df847a6c Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 24 Dec 2025 22:45:29 -0800 Subject: [PATCH] =?UTF-8?q?docs(identity-service):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=98=BF=E9=87=8C=E4=BA=91KYC=E5=AE=9E=E4=BA=BA=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 .env.example 中添加: - ALIYUN_KYC_ENABLED: 是否启用真实KYC验证 - ALIYUN_KYC_ENDPOINT: API端点 - ALIYUN_KYC_SCENE_ID: 人脸活体检测场景ID 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../services/identity-service/.env.example | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/backend/services/identity-service/.env.example b/backend/services/identity-service/.env.example index 9291d32c..7707d3cc 100644 --- a/backend/services/identity-service/.env.example +++ b/backend/services/identity-service/.env.example @@ -79,6 +79,29 @@ ALIYUN_SMS_ENDPOINT="dysmsapi.aliyuncs.com" # true: 真实发送短信 SMS_ENABLED="false" +# ============================================================================= +# KYC Service - Aliyun 实人认证 (阿里云金融级实人认证) +# ============================================================================= +# 产品文档: https://help.aliyun.com/product/60032.html +# 控制台: https://yundun.console.aliyun.com/?p=cloudauth +# +# 支持三层认证: +# - 层级1: 实名认证 (二要素验证: 姓名+身份证号) +# - 层级2: 实人认证 (人脸活体检测) +# - 层级3: KYC (证件照OCR识别验证) + +# 是否启用阿里云 KYC 服务 (开发环境建议设为 false) +# false: 模拟模式,只验证身份证格式和校验码 +# true: 真实调用阿里云实人认证 API +ALIYUN_KYC_ENABLED="false" + +# 阿里云实人认证 API 端点 (默认无需修改) +ALIYUN_KYC_ENDPOINT="cloudauth.aliyuncs.com" + +# 阿里云实人认证场景 ID (人脸活体检测需要) +# 在阿里云实人认证控制台创建场景后获取 +ALIYUN_KYC_SCENE_ID="" + # ============================================================================= # Wallet Encryption # =============================================================================