mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-16 01:50:25 +08:00
优化代码
This commit is contained in:
@@ -5,11 +5,11 @@ import (
|
||||
"github.com/iwind/TeaGo/maps"
|
||||
)
|
||||
|
||||
// 解析参数
|
||||
// DecodeParams 解析参数
|
||||
func (this *NodeClusterFirewallAction) DecodeParams() (maps.Map, error) {
|
||||
if IsNotNull(this.Params) {
|
||||
params := maps.Map{}
|
||||
err := json.Unmarshal([]byte(this.Params), ¶ms)
|
||||
err := json.Unmarshal(this.Params, ¶ms)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user