1
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user