From 5b509aaee7e50bd4728e622c09b18b8d9374082a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 2 Dec 2024 14:34:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B=E5=A4=84?= =?UTF-8?q?=E7=90=86=E6=94=AF=E6=8C=81=E5=AF=B9=E6=8C=87=E9=92=88=E7=9A=84?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gjson_hack/precision.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gjson_hack/precision.go b/gjson_hack/precision.go index 2e808e5..328c07b 100644 --- a/gjson_hack/precision.go +++ b/gjson_hack/precision.go @@ -141,6 +141,8 @@ func Any(sourceValue gjson.Result) (any, error) { // // Date : 14:28 2024/12/1 func getRealDataType(dataType consts.DataType, sourceValue gjson.Result) consts.DataType { + // 指针数据类型, 转换为普通数据类型处理 + dataType = consts.DataType(strings.TrimLeft(dataType.String(), "*")) if dataType == consts.DataTypeAny { if sourceValue.IsObject() { dataType = consts.DataTypeMapAnyAny