mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-27 18:33:39 +08:00
优化代码
This commit is contained in:
@@ -10,7 +10,7 @@ func (this *NodeValue) DecodeMapValue() maps.Map {
|
||||
return maps.Map{}
|
||||
}
|
||||
var m = maps.Map{}
|
||||
err := json.Unmarshal([]byte(this.Value), &m)
|
||||
err := json.Unmarshal(this.Value, &m)
|
||||
if err != nil {
|
||||
// 忽略错误
|
||||
return m
|
||||
|
||||
Reference in New Issue
Block a user