From befa093a30017fb69be4d86179cc32c1bda53dae Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 17 Jul 2026 11:11:22 +0800 Subject: [PATCH] bugfix --- unipay/providers/wechat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")