字符串类型的处理

This commit is contained in:
白茶清欢 2023-05-04 17:50:45 +08:00
parent 07f0e77b96
commit 01b6e1abe8

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: