mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-27 00:51:55 +08:00
fix some bug and standardize the code (#2)
This commit is contained in:
@@ -2,13 +2,12 @@ package qqwry
|
||||
|
||||
// Area return IpArea according to ip
|
||||
func Area(ip string) string {
|
||||
ipData := GetQQWry().SearchByIPv4(ip)
|
||||
if GetQQWry() == nil {
|
||||
return ""
|
||||
}
|
||||
ipData := GetQQWry().SearchByIPv4(ip)
|
||||
if ipData.Area == " CZ88.NET" {
|
||||
return ipData.Country
|
||||
} else {
|
||||
return ipData.Country + " " + ipData.Area
|
||||
}
|
||||
return ipData.Country + " " + ipData.Area
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user