update
This commit is contained in:
parent
ae77e1fdcb
commit
7155014e3a
@ -325,7 +325,7 @@ async def complete_order(
|
|||||||
point_manager.add_points(
|
point_manager.add_points(
|
||||||
user_id = order.user_id,
|
user_id = order.user_id,
|
||||||
points = order.gift_points,
|
points = order.gift_points,
|
||||||
description = f"消费送蜂蜜",
|
description = f"消费送积分",
|
||||||
order_id = order.order_id
|
order_id = order.order_id
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -520,17 +520,17 @@ async def create_user_auth(
|
|||||||
|
|
||||||
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(
|
||||||
|
|||||||
BIN
jobs.sqlite
BIN
jobs.sqlite
Binary file not shown.
Loading…
Reference in New Issue
Block a user