From 01b6e1abe8c427d7255a02ea6e31b0c1fe6b6dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 4 May 2023 17:50:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter.go b/filter.go index 7274184..354f819 100644 --- a/filter.go +++ b/filter.go @@ -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: