private static string GetLocation(IpInfo info) { string ip = string.Format("{0}.{1}.{2}.{3}", info.Ip1, info.Ip2, info.Ip3, info.Ip4); Discuz.Forum.IpSearch.PHCZIP phczip = new IpSearch.PHCZIP(); return(phczip.GetAddressWithIP(ip) == "" ? "未知地址": phczip.GetAddressWithIP(ip)); }
private static string GetLocation(IpInfo info) { string ip = string.Format("{0}.{1}.{2}.{3}", info.Ip1, info.Ip2, info.Ip3, info.Ip4); Discuz.Forum.IpSearch.PHCZIP phczip = new IpSearch.PHCZIP(); return phczip.GetAddressWithIP(ip) == "" ? "未知地址": phczip.GetAddressWithIP(ip); }