mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-12 13:05:58 +08:00
system text format changes
This commit is contained in:
+1
-2
@@ -106,8 +106,7 @@ func MapToJsonString(param map[string]interface{}) string {
|
||||
dataString := string(dataType)
|
||||
return dataString
|
||||
}
|
||||
func JsonStringToMap(str string) map[string]interface{} {
|
||||
var tempMap map[string]interface{}
|
||||
func JsonStringToMap(str string) (tempMap map[string]interface{}) {
|
||||
_ = json.Unmarshal([]byte(str), &tempMap)
|
||||
return tempMap
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user