fix: promote.dspy加回binds用request._run_ns

This commit is contained in:
yumoqing 2026-07-05 11:08:41 +08:00
parent f50284df3e
commit 3797ae1686

View File

@ -1,5 +1,5 @@
code = request._run_ns.params_kw.get('code', '') code = request._run_ns.params_kw.get('code', '')
return { result = {
"widgettype": "Form", "widgettype": "Form",
"options": { "options": {
"width": "100%", "height": "100%", "width": "100%", "height": "100%",
@ -10,5 +10,6 @@ return {
{"name": "expired_date", "label": "促销失效日期", "uitype": "date"}, {"name": "expired_date", "label": "促销失效日期", "uitype": "date"},
{"name": "discount", "label": "折扣", "uitype": "float", "tip": "0<折扣<1"} {"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)"}]
} }