1
This commit is contained in:
@@ -452,7 +452,7 @@ def _create_wechat_order(order: PaymentOrder, db_configs: dict[str, str]) -> str
|
||||
try:
|
||||
# 调用微信支付 Native 下单接口
|
||||
code, result = client.pay(
|
||||
description=f"充值订单 {order.order_no}",
|
||||
description=f"充值积分{order.credits},订单 {order.order_no}",
|
||||
out_trade_no=order.order_no,
|
||||
amount={
|
||||
"total": int(order.amount * 100), # 微信支付以分为单位
|
||||
@@ -656,7 +656,7 @@ def _create_alipay_order(order: PaymentOrder, db_configs: dict[str, str]) -> str
|
||||
model = AlipayTradePrecreateModel()
|
||||
model.out_trade_no = order.order_no
|
||||
model.total_amount = f"{order.amount:.2f}"
|
||||
model.subject = f"充值订单 {order.order_no}"
|
||||
model.subject = f"充值积分{order.credits},订单 {order.order_no}"
|
||||
model.product_code = "QR_CODE_OFFLINE"
|
||||
|
||||
body_parts = []
|
||||
|
||||
Reference in New Issue
Block a user