fix(payment): 改进支付宝异步通知日志记录方式
- 将日志记录由系统日志改为写入本地文件notify.log - 记录接收到的支付宝异步通知数据内容 - 优化日志信息的持久化存储方式
This commit is contained in:
parent
30105c685a
commit
ccc5a057e3
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user