数据类型处理支持对指针的处理

This commit is contained in:
zhangdeman committed 2024-12-02 14:34:03 +08:00
1 parent 5fc2e0a613
commit 5b509aaee7
1 file changed
+2
+2
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.