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