fix: title用json.dumps整个字符串避免空值破坏JSON

This commit is contained in:
yumoqing 2026-07-04 20:34:30 +08:00
parent c3cad2140f
commit 8173fb603b

View File

@ -11,7 +11,7 @@
{
"widgettype": "Text",
"options": {
"text": "产品折扣设置 - {{json.dumps(info.name, ensure_ascii=False) if info.name else ''}}",
"text": {{json.dumps('产品折扣设置 - ' + (info.name or ''), ensure_ascii=False)}},
"fontSize": "16px",
"fontWeight": "600",
"color": "#F1F5F9",