mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
fix: 解决类型断言错误的问题 (#3619)
This commit is contained in:
parent
be6b58b0a1
commit
4891de0a8a
@ -13,8 +13,6 @@ func loadParamFromVars(key string, isString bool, vars map[string]interface{}) s
|
|||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
if isString {
|
|
||||||
return vars[key].(string)
|
return fmt.Sprintf("%v", vars[key])
|
||||||
}
|
|
||||||
return fmt.Sprintf("%v", vars[key].(float64))
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user