mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-07 02:06:38 +08:00
fix(gost): ensure JSON floats are correctly converted in GetInt and remove accidental binary
This commit is contained in:
@@ -60,6 +60,8 @@ func GetInt(md metadata.Metadata, keys ...string) (v int) {
|
||||
}
|
||||
case int:
|
||||
v = vv
|
||||
case float64:
|
||||
v = int(vv)
|
||||
case string:
|
||||
v, _ = strconv.Atoi(vv)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user