diff --git a/unipay/providers/wechat.py b/unipay/providers/wechat.py index b99b4e8..7f01ee3 100644 --- a/unipay/providers/wechat.py +++ b/unipay/providers/wechat.py @@ -174,8 +174,8 @@ class WechatGateway(Gateway): "Content-Type": "application/json" }) as resp: ret = await resp.json() - url = ret.get("h5_url") - if url is None: + returl = ret.get("h5_url") + if returl is None: e = Exception(f'{ret=} error') raise e return ret.get("h5_url")