fix(更改区域): 区域更改为运营商

This commit is contained in:
2021-07-08 11:39:43 +08:00
parent ccbae8531d
commit f37264f5ab
5 changed files with 35 additions and 36 deletions

View File

@ -16,10 +16,10 @@ func main() {
return
}
queryIp := os.Args[1]
city, area, err := qqwry.QueryIP(queryIp)
city, isp, err := qqwry.QueryIP(queryIp)
if err != nil {
fmt.Printf("错误:%v\n", err)
return
}
fmt.Printf("城市:%s区域%s\n", city, area)
fmt.Printf("城市:%s运营商%s\n", city, isp)
}