fix: ConvertToFloat64Slice

This commit is contained in:
lilong.129
2024-12-25 20:05:31 +08:00
parent bb04d80a05
commit 1dc74121e6
2 changed files with 4 additions and 1 deletions

View File

@@ -396,6 +396,9 @@ func ConvertToFloat64(val interface{}) (float64, error) {
}
func ConvertToFloat64Slice(val interface{}) ([]float64, error) {
if paramsSlice, ok := val.([]float64); ok {
return paramsSlice, nil
}
paramsSlice, ok := val.([]interface{})
if !ok {
return nil, errors.New("val is not slice")

View File

@@ -1 +1 @@
v5.0.0+2412241743
v5.0.0+2412252005