diff --git a/common.go b/common.go index c0167e3..2435517 100644 --- a/common.go +++ b/common.go @@ -381,6 +381,12 @@ func (c *common) ToString() string { // // Date : 16:25 2024/3/8 func (c *common) Filter(ignoreFieldList []string, rewriteFieldTable map[string]string) map[string]interface{} { + if nil == ignoreFieldList { + ignoreFieldList = make([]string, 0) + } + if nil == rewriteFieldTable { + rewriteFieldTable = make(map[string]string) + } result := make(map[string]interface{}) ignoreFieldTable := make(map[string]bool) for _, item := range ignoreFieldList {