This commit is contained in:
2026-06-10 15:01:57 +08:00
parent e87c3609dd
commit 2fe2b075de
+3
View File
@@ -221,6 +221,9 @@ async def create_recharge_order(
if qr_url:
# Attach QR URL to the order instance (transient, not persisted)
order.qr_url = qr_url # type: ignore[attr-defined]
else:
# Precreate failed — do not leave a pending order that can never be paid
raise ValueError("支付宝预下单失败,请检查配置或稍后重试")
return order