This commit is contained in:
2026-06-11 11:09:17 +08:00
parent ff5fc5eba6
commit e4097a42bb
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ from fastapi import APIRouter, Depends, HTTPException, Request
from sqlalchemy import select from sqlalchemy import select
from sqlalchemy.ext.asyncio import AsyncSession from sqlalchemy.ext.asyncio import AsyncSession
logger = logging.getLogger("videogen") logger = logging.getLogger("payment")
from app.dependencies import get_db, get_current_user from app.dependencies import get_db, get_current_user
from app.models.user import User from app.models.user import User
-1
View File
@@ -382,7 +382,6 @@ def _create_alipay_order(order: PaymentOrder, db_configs: dict[str, str]) -> str
request.set_notify_url(notify_url) request.set_notify_url(notify_url)
elif hasattr(request, 'notify_url'): elif hasattr(request, 'notify_url'):
request.notify_url = notify_url request.notify_url = notify_url
logger.info(f"Set notify_url for order {order.order_no}: {notify_url}")
except Exception as e: except Exception as e:
logger.warning(f"Failed to set notify_url: {e}") logger.warning(f"Failed to set notify_url: {e}")