mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-07 10:35:59 +08:00
options add value
This commit is contained in:
@@ -116,6 +116,9 @@ func JsonStringToMap(str string) (tempMap map[string]int32) {
|
||||
return tempMap
|
||||
}
|
||||
func GetSwitchFromOptions(Options map[string]bool, key string) (result bool) {
|
||||
if Options == nil {
|
||||
return true
|
||||
}
|
||||
if flag, ok := Options[key]; !ok || flag {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user