Co-authored-by: guke <guke@autohome.com.cn> Co-authored-by: zhuzihao <zhuzihao@wonderable.ai> Co-authored-by: wuqi <wuqi@wonderable.ai> Co-authored-by: chenshuobo <chenshuobo@wonderable.ai> Co-authored-by: liujiahui <liujiahui@wonderable.ai> Reviewed-on: #106
This commit was merged in pull request #106.
This commit is contained in:
@@ -202,6 +202,9 @@ def withdraw(req: WithdrawRequest, user: CurrentUser, db: DbSession) -> Withdraw
|
||||
order = crud_wallet.create_withdraw(
|
||||
db, user.id, req.amount_cents, source=req.source,
|
||||
user_name=req.user_name, out_bill_no=req.out_bill_no,
|
||||
# 0.01 元调试提现:放行低于最低额的小额。双闸——客户端仅 debug 包在「0.01 元提现」开关开时
|
||||
# 连同 skip_review 一起下发;服务端仅非 prod 才认。生产恒 False,最低额校验照常。
|
||||
allow_sub_min=(req.skip_review and not settings.is_prod),
|
||||
)
|
||||
except crud_wallet.InvalidWithdrawAmountError as e:
|
||||
raise HTTPException(
|
||||
|
||||
Reference in New Issue
Block a user