fix: fix the jsoniter fatal bug.

This commit is contained in:
lishuang
2023-07-22 15:39:53 +08:00
parent 42468e9711
commit 006554cd0a
-8
View File
@@ -150,14 +150,6 @@ func (this *Matter) FetchPropMap() map[string]string {
// fetch the props
func (this *Matter) SetPropMap(propMap map[string]string) {
//恢复panic
defer func() {
fmt.Printf("panic recover check")
if err := recover(); err != nil {
fmt.Printf("occur error while set prop map %s\r\n", err)
}
}()
b, err := jsoniter.ConfigCompatibleWithStandardLibrary.Marshal(propMap)
if err != nil {
panic(err)