This commit is contained in:
aaron 2025-04-02 15:07:01 +08:00
parent ae77e1fdcb
commit 7155014e3a
3 changed files with 11 additions and 11 deletions

View File

@ -325,7 +325,7 @@ async def complete_order(
point_manager.add_points(
user_id = order.user_id,
points = order.gift_points,
description = f"消费送蜂蜜",
description = f"消费送积分",
order_id = order.order_id
)

View File

@ -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(

Binary file not shown.