优化执行结点

This commit is contained in:
boyce
2025-10-05 14:56:37 +08:00
parent 654426a836
commit 640b61bcdb
3 changed files with 11 additions and 5 deletions

View File

@@ -54,7 +54,14 @@ func (en *execNode) GetInPortDefaultIntArrayValue(index int) []int64 {
return nil
}
return val.([]int64)
var arrayInt []int64
arrayVal := val.([]any)
for i := range arrayVal {
if intVal, ok := arrayVal[i].(float64); ok {
arrayInt = append(arrayInt, int64(intVal))
}
}
return arrayInt
}
func (en *execNode) GetInPortDefaultStringArrayValue(index int) []string {