This commit is contained in:
aaron 2025-04-02 15:16:17 +08:00
parent bc4f9c0fd5
commit 5b6459c220
2 changed files with 11 additions and 11 deletions

View File

@ -519,18 +519,18 @@ async def create_user_auth(
return error_response(code=400, message="该用户已有认证记录") return error_response(code=400, message="该用户已有认证记录")
try: try:
# 调用实名认证 #调用实名认证
# verify_result = await qcloud_manager.verify_id_card( verify_result = await qcloud_manager.verify_id_card(
# id_card=auth.id_number, id_card=auth.id_number,
# name=auth.name name=auth.name
# ) )
# # 验证不通过 # 验证不通过
# if verify_result["Result"] != "0": # 0 表示一致,其他值表示不一致 if verify_result["Result"] != "0": # 0 表示一致,其他值表示不一致
# return error_response( return error_response(
# code=400, code=400,
# message=f"实名认证失败: {verify_result['Description']}" message=f"实名认证失败: {verify_result['Description']}"
# ) )
# 创建认证记录 # 创建认证记录
auth_record = UserAuthDB( auth_record = UserAuthDB(

Binary file not shown.