feat(错误信息): 没有找到ip时返回err

This commit is contained in:
xiaoqidun 2021-01-21 16:03:36 +08:00
parent d196a86e24
commit 3caa55c1c7

View File

@ -82,6 +82,7 @@ func QueryIP(queryIp string) (country string, area string, err error) {
}
}
if offset <= 0 {
err = errors.New("ip not found")
return
}
posM := offset + 4