From ccc5a057e36969233a6983440bce5e573e437132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AC=E5=8F=B8git?= <240241002@qq.com> Date: Fri, 23 Jan 2026 17:12:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(payment):=20=E6=94=B9=E8=BF=9B=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=AE=9D=E5=BC=82=E6=AD=A5=E9=80=9A=E7=9F=A5=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=AE=B0=E5=BD=95=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将日志记录由系统日志改为写入本地文件notify.log - 记录接收到的支付宝异步通知数据内容 - 优化日志信息的持久化存储方式 --- blueprints/payment.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blueprints/payment.py b/blueprints/payment.py index 01d0f75..6a273a7 100644 --- a/blueprints/payment.py +++ b/blueprints/payment.py @@ -169,7 +169,9 @@ def payment_notify(): """支付宝异步通知""" try: data = request.form.to_dict() - system_logger.info(f"Received Alipay Notify: {data}") + with open("e:\\ai_v\\notify.log", "a") as f: + f.write(f"Received data: {data}\n") + signature = data.get("sign") if not signature: