优化自动生成json #3

Merged
zhangdeman merged 24 commits from feature/tree into master 2023-05-05 16:10:39 +08:00
01b6e1abe8 字符串类型的处理
白茶清欢
2023-05-04 17:50:45 +08:00
Commit 18 of 24
Show all commits
+1 -1
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:
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.