400DuplicateIPThe IP IP of 'argument' is duplicated.服务的IP地址重复。400InconsistentIPformatThe server IPs in the cluster should be unified as IPv4 or IPv6 format when cluster network is not specified.如果不指定集群网络,集群内服务器IP应统一为IPv4或IPv6格式。
入参 ip地址,可以是ipv4,也可以是ipv6。 返回值 依次为ip归属运营商,归属省,归属地市。如果没有找到则返回nil。 示例: local vender, province, city = ctyun.get_ip_location("183.38.147.155") if vender ~= nil then ctyun.resp.set_output(vender..":"..province..":"..city.."