From 7310de5f2111edfa4dd137ab9f12e9731394eed7 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Tue, 25 Mar 2025 19:44:52 +0800 Subject: [PATCH] update --- app/api/endpoints/withdraw.py | 5 +++++ app/core/wecombot.py | 2 ++ jobs.sqlite | Bin 24576 -> 24576 bytes 3 files changed, 7 insertions(+) diff --git a/app/api/endpoints/withdraw.py b/app/api/endpoints/withdraw.py index c95a8f8..44e44bd 100644 --- a/app/api/endpoints/withdraw.py +++ b/app/api/endpoints/withdraw.py @@ -41,6 +41,11 @@ async def create_withdraw( if not bank_card: return error_response(code=404, message="银行卡不存在") + # 最低提现金额 + min_withdraw_amount = 100 + if withdraw.amount < min_withdraw_amount: + return error_response(code=400, message=f"最低提现金额为{min_withdraw_amount}元") + # 验证余额 account = db.query(UserAccountDB).filter( UserAccountDB.user_id == current_user.userid diff --git a/app/core/wecombot.py b/app/core/wecombot.py index 4e767f0..fa24e7d 100644 --- a/app/core/wecombot.py +++ b/app/core/wecombot.py @@ -251,6 +251,8 @@ class WecomBot: > 下单时间: {CommonUtils.get_asia_datetime(shipping_order.create_time)} > 包裹数量: {shipping_order.package_count}个 > 订单金额: ¥{shipping_order.original_amount} +> 券抵扣: ¥{shipping_order.coupon_discount_amount} +> 加价金额: ¥{shipping_order.additional_fee_amount} > 实付金额: ¥{shipping_order.final_amount} > 订单状态: {shipping_order.status.status_text} diff --git a/jobs.sqlite b/jobs.sqlite index ef7a342ae43b053b5043fcbaddc28046ab338dd1..549055ef1cf90dfa83dbbb22d8a166a077b0a248 100644 GIT binary patch delta 19 bcmZoTz}Rqrae_4C)QK|Aj8iuzEQkjHNh1eZ delta 19 acmZoTz}Rqrae_2s>qHr6#@3Aq3*rGtGY2{V