From 5a8e287797dc71f220ddc9b6414de714babfb5c8 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 17 Dec 2025 11:23:12 +0800 Subject: [PATCH] bugfix --- wwwroot/recharge.dspy | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/wwwroot/recharge.dspy b/wwwroot/recharge.dspy index 5edb117..1ee73f1 100644 --- a/wwwroot/recharge.dspy +++ b/wwwroot/recharge.dspy @@ -1,9 +1,18 @@ -url = await create_payment(request, params_kw) -return { - "widgettype":"Iframe", - "options":{ - "url": url, - "height": "100%", - "width":"100%" +debug(f'recharge.dspy: {params_kw=}') +try: + url = await create_payment(request, params_kw) + return { + "widgettype":"Iframe", + "options":{ + "url": url, + "height": "100%", + "width":"100%" + } + } +except Exception as e: + return { + "widgettype":"Text", + "options":{ + "width":"100%", + "text":f"{e}" } -}