simplify: DSPY直接读id,params_mapping透传,不重命名

This commit is contained in:
yumoqing 2026-08-05 19:14:22 +08:00
parent 0144129ec1
commit 8a22ab961e
2 changed files with 2 additions and 3 deletions

View File

@ -86,7 +86,7 @@
},
"params_mapping": {
"mapping": {
"id": "mkt_id"
"id": "id"
},
"need_other": false
},

View File

@ -1,6 +1,5 @@
# 从营销方案直接生成促销码toolbar 工具按钮调用)
# 参数 mkt_id = 选中行的 id 字段params_mapping: id → mkt_id
mkt_id = params_kw.get('mkt_id', '')
mkt_id = params_kw.get('id', '')
if not mkt_id:
return {"widgettype": "Error", "options": {"title": "操作失败", "message": "缺少方案ID", "cwidth": 16, "cheight": 9, "timeout": 3}}