From 68eff9086b90ed8ad86f0ce0a0a4f99d942fc866 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 17 Jul 2026 11:03:42 +0800 Subject: [PATCH] bugfix --- unipay/providers/wechat.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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=}')