From 8acd9905594a007ee19f67dccd0d1d50cc034945 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 25 Dec 2025 18:15:23 +0800 Subject: [PATCH] bugfix --- unipay/init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unipay/init.py b/unipay/init.py index 662207c..b950a26 100644 --- a/unipay/init.py +++ b/unipay/init.py @@ -137,7 +137,7 @@ async def refund_payment(request, params_kw=None): # 微信支付回调入口 async def wechat_notify(request): debug("wechat notify called .......") - json_response = request._run_ns.json_reponse + json_response = ServerEnv().json_reponse provider = 'wechat' if PROVIDERS[provider] is None: e = Exception(f'{provider} cannot pay') @@ -162,7 +162,7 @@ async def wechat_notify(request): # 支付宝回调入口 async def alipay_notify(request): debug("alipay notify called .......") - Response = request._run_ns.Response + Response = ServerEnv().Response provider = 'alipay' if PROVIDERS[provider] is None: e = Exception(f'{provider} cannot pay')