Skip to content

Commit

Permalink
GetPropertyAsString支持非数值类型
Browse files Browse the repository at this point in the history
  • Loading branch information
magicsea committed Jun 27, 2024
1 parent e6570b6 commit 55d195d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions config/BevTreeConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ func (this *BTNodeCfg) GetPropertyAsString(name string) string {

str, fok := v.(string)
if !fok {
fmt.Println("GetProperty err ,format not string:", name, v)
panic("GetProperty err ,format not string:" + name)
return ""
return fmt.Sprintf("%v",v)
}
return str
}
Expand Down

0 comments on commit 55d195d

Please sign in to comment.