fix(微信订阅): 字段名按微信真实模板校准,不再靠猜编号;phrase 只截断不补齐

This commit is contained in:
2026-10-24 10:18:57 +08:00
parent c51b7c660a
commit dc2565da34
8 changed files with 701 additions and 49 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ test('buildTemplateData:按映射取值,并交给 clamp 处理(time 有兜
assert.deepEqual(Object.keys(data), ['thing2', 'date4', 'time1', 'character_string3', 'phrase5'])
assert.equal(data.thing2.value, '晴天')
assert.equal(data.character_string3.value, '3')
assert.equal(Array.from(data.phrase5.value).length, 5)
assert.equal(data.phrase5.value, '已排期')
assert.deepEqual(findEmptyDataFields(data), [], '有完整变量时不该出现空字段')
})