fix: 添加init bind传递discountid,dspy添加early debug日志

This commit is contained in:
Hermes Agent 2026-06-24 21:37:22 +08:00
parent abcfd7c9a2
commit 4f05c285a1
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,7 @@
# 参数: discountid (必需)
discountid = params_kw.get('discountid')
debug(f'get_products_with_discount called: params_kw keys={list(params_kw.keys())}, discountid={discountid}')
if not discountid:
return {"total": 0, "rows": []}

View File

@ -67,5 +67,14 @@
}
]
}
],
"binds": [
{
"wid": "self",
"event": "init",
"actiontype": "script",
"target": "product_discount_tbl",
"script": "var discountid = new URLSearchParams(window.location.search).get('discountid') || ''; if (discountid) { await this.render({discountid: discountid}); }"
}
]
}