优化自动生成json #3

Merged
zhangdeman merged 24 commits from feature/tree into master 2023-05-05 16:10:39 +08:00
Showing only changes of commit 01b6e1abe8 - Show all commits

View File

@ -227,7 +227,7 @@ func (f *filter) getValue(dataType string, sourceValue gjson.Result, defaultValu
err = util.ConvertAssign(&val, sourceValueStr)
return val, err
case DataTypeString:
return defaultValue, nil
return sourceValueStr, nil
case DataTypeAny:
return sourceValue.Value(), nil
default: