Update ena-planner.js

This commit is contained in:
Hao19911125
2026-02-21 22:32:04 +08:00
committed by GitHub
parent 1f387c6a3e
commit cfcc24142e

View File

@@ -730,8 +730,9 @@ function buildEjsContext() {
} }
val = cur ?? ''; val = cur ?? '';
} }
// 处理字符串布尔值 // 字符串布尔值转为真正的布尔值
if (val === 'false' || val === 'False' || val === '0') return ''; if (val === 'false' || val === 'False' || val === 'FALSE') return false;
if (val === 'true' || val === 'True' || val === 'TRUE') return true;
return val; return val;
} }