optimize: 优化配置。

develop
王良 2025-09-28 17:40:09 +08:00
parent 41c475eab6
commit 8541462f73
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@ const { DynamicChoice } = require('../choice/index')
function mapToList (ipMap) { function mapToList (ipMap) {
const ipList = [] const ipList = []
for (const key in ipMap) { for (const key in ipMap) {
if (ipMap[key]) { // 配置为 ture 时才生效 const value = ipMap[key]
if (value && value !== 'false' && value !== '0') { // 配置为 ture 时才生效
ipList.push(key) ipList.push(key)
} }
} }