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