mirror of
https://github.com/xiaoqidun/qqwry.git
synced 2023-06-27 14:38:22 +08:00
feat(错误信息): 没有找到ip时返回err
This commit is contained in:
parent
d196a86e24
commit
3caa55c1c7
1
qqwry.go
1
qqwry.go
@ -82,6 +82,7 @@ func QueryIP(queryIp string) (country string, area string, err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if offset <= 0 {
|
if offset <= 0 {
|
||||||
|
err = errors.New("ip not found")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
posM := offset + 4
|
posM := offset + 4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user