fix: promote.dspy最终版——去binds避免服务端script解析,用request._run_ns.params_kw

This commit is contained in:
yumoqing 2026-07-05 11:09:33 +08:00
parent 3797ae1686
commit ab9dc4f730

View File

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