This commit is contained in:
2026-06-10 18:17:41 +08:00
parent 6714ff3b0e
commit cd192f910f
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -353,10 +353,6 @@ def _create_alipay_order(order: PaymentOrder, db_configs: dict[str, str]) -> str
if response.is_success():
qr_url = response.qr_code
logger.info(
f"Alipay precreate success: order_no={order.order_no}, "
f"qr_url={qr_url}"
)
return qr_url
else:
logger.error(
@@ -617,7 +617,7 @@ const AppLayout: React.FC = () => {
try {
setPaying(true);
const order = await createRechargeOrder(plan.id, paymentMethod);
if (paymentMethod === 'alipay' && order.qr_url) {
if (order.payment_method === 'alipay' && order.qr_url) {
// Alipay: show the real QR code URL from the backend
setCurrentPaymentInfo({
price: plan.price,