From 687933a63ed87deefebc9e8144588c3c1879a7f5 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Wed, 8 Dec 2021 17:23:26 +0800 Subject: [PATCH] conversation update --- pkg/utils/map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/map.go b/pkg/utils/map.go index 48acadc60..f2c2d07b5 100644 --- a/pkg/utils/map.go +++ b/pkg/utils/map.go @@ -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