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