This commit is contained in:
John Guo
2021-07-06 21:18:26 +08:00
parent 8e76d7a8ed
commit 2970864158

View File

@ -264,7 +264,7 @@ func DataToMapDeep(value interface{}) map[string]interface{} {
name = ""
fieldTag = rtField.Tag
for _, tag := range structTagPriority {
if s := fieldTag.Get(tag); s != "" && gregex.IsMatchString(regularFieldNameWithoutDotRegPattern, s) {
if s := fieldTag.Get(tag); s != "" {
name = s
break
}