debug: 回退promote.dspy到最小化版本测试

This commit is contained in:
yumoqing 2026-07-05 11:03:35 +08:00
parent 7daff0fcd6
commit e83a9ae414

View File

@ -1,18 +1 @@
# Customer promote page - scan QR code to claim discount return {"widgettype": "Form", "options": {"url": "/discount/generate_qr.dspy", "fields": [{"name": "discount", "uitype": "float", "label": "折扣"}]}}
code = params_kw.get('code', '')
result = {
"widgettype": "Form",
"options": {
"width": "100%",
"height": "100%",
"url": "/discount/generate_qr.dspy?code=" + code,
"method": "POST",
"fields": [
{"name": "valid_term", "label": "有效期", "uitype": "str", "tip": "格式xY, xM, xD"},
{"name": "expired_date", "label": "促销失效日期", "uitype": "date", "tip": "需在此日期前使用"},
{"name": "discount", "label": "折扣", "uitype": "float", "tip": "0<折扣<1"}
]
},
"binds": [{"wid": "self", "event": "submited", "actiontype": "script", "target": "self", "script": "await bricks.show_resp_message_or_error(event.params)"}]
}