|
@@ -37,7 +37,7 @@ public class IpPoolServiceImpl extends ServiceImpl<IpPoolMapper, IpPool> impleme
|
|
private void syncIpPool() {
|
|
private void syncIpPool() {
|
|
HttpClientUtils httpClientUtils = new HttpClientUtils();
|
|
HttpClientUtils httpClientUtils = new HttpClientUtils();
|
|
try {
|
|
try {
|
|
- String result = httpClientUtils.get("http://d.jghttp.golangapi.com/getip?num=200&type=2&pro=&city=0&yys=0&port=11&pack=14477&ts=1&ys=1&cs=1&lb=1&sb=0&pb=45&mr=2®ions=");
|
|
|
|
|
|
+ String result = httpClientUtils.get("http://d.jghttp.golangapi.com/getip?num=10&type=2&pro=&city=0&yys=0&port=11&pack=14503&ts=1&ys=1&cs=1&lb=1&sb=0&pb=45&mr=2®ions=");
|
|
ObjectMapper mapper = new ObjectMapper();
|
|
ObjectMapper mapper = new ObjectMapper();
|
|
JsonNode jsonNode = mapper.readTree(result);
|
|
JsonNode jsonNode = mapper.readTree(result);
|
|
if (jsonNode.get("code").asInt() == 0) {
|
|
if (jsonNode.get("code").asInt() == 0) {
|