提交 687933a6 编写于 作者: programor_guo's avatar programor_guo

conversation update

上级 a090e602
......@@ -116,7 +116,7 @@ func JsonStringToMap(str string) (tempMap map[string]interface{}) {
return tempMap
}
func GetSwitchFromOptions(Options map[string]interface{}, key string) (result bool) {
if flag, ok := Options[key]; !ok || flag.(int) == 1 {
if flag, ok := Options[key]; !ok || flag.(float64) == 1 {
return true
}
return false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册