update
This commit is contained in:
parent
bc4f9c0fd5
commit
5b6459c220
@ -520,17 +520,17 @@ async def create_user_auth(
|
||||
|
||||
try:
|
||||
#调用实名认证
|
||||
# verify_result = await qcloud_manager.verify_id_card(
|
||||
# id_card=auth.id_number,
|
||||
# name=auth.name
|
||||
# )
|
||||
verify_result = await qcloud_manager.verify_id_card(
|
||||
id_card=auth.id_number,
|
||||
name=auth.name
|
||||
)
|
||||
|
||||
# # 验证不通过
|
||||
# if verify_result["Result"] != "0": # 0 表示一致,其他值表示不一致
|
||||
# return error_response(
|
||||
# code=400,
|
||||
# message=f"实名认证失败: {verify_result['Description']}"
|
||||
# )
|
||||
# 验证不通过
|
||||
if verify_result["Result"] != "0": # 0 表示一致,其他值表示不一致
|
||||
return error_response(
|
||||
code=400,
|
||||
message=f"实名认证失败: {verify_result['Description']}"
|
||||
)
|
||||
|
||||
# 创建认证记录
|
||||
auth_record = UserAuthDB(
|
||||
|
||||
BIN
jobs.sqlite
BIN
jobs.sqlite
Binary file not shown.
Loading…
Reference in New Issue
Block a user