From 1ff60433a3d99503521c4a7afedf7d998b6ec9cc Mon Sep 17 00:00:00 2001 From: ahao Date: Thu, 13 Mar 2025 10:31:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/routers/user_order.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/app/routers/user_order.py b/backend/app/routers/user_order.py index 5d3b54d..6820686 100644 --- a/backend/app/routers/user_order.py +++ b/backend/app/routers/user_order.py @@ -325,11 +325,11 @@ async def wxpay_notify(request: Request): except Exception as e: logging.error(f"回调处理异常: {str(e)}", exc_info=True) - if connection: - connection.rollback() + # if connection: + # connection.rollback() return JSONResponse(content={"code": "FAIL", "message": "系统错误"}, status_code=500) - finally: - if cursor: - cursor.close() - if connection: - connection.close() + # finally: + # if cursor: + # cursor.close() + # if connection: + # connection.close()