Commit be5eee9f by Java - 段鹏举

查询360手机归属地接口地址改为https

parent 450d1f32
...@@ -34,7 +34,7 @@ public class PhoneAreaUtil { ...@@ -34,7 +34,7 @@ public class PhoneAreaUtil {
if(StringUtils.isBlank(mobile)) if(StringUtils.isBlank(mobile))
return null; return null;
HCFetcher fetcher = HCFetcher.getInstance(); HCFetcher fetcher = HCFetcher.getInstance();
FetchEntity entity = fetcher.get(GConstants.getValue("cx.shouji.360.cn", "http://cx.shouji.360.cn/phonearea.php")+"?number="+mobile); FetchEntity entity = fetcher.get(GConstants.getValue("cx.shouji.360.cn", "https://cx.shouji.360.cn/phonearea.php")+"?number="+mobile);
if(entity != null && entity.isSuccess()){ if(entity != null && entity.isSuccess()){
String txt = entity.getContent("UTF-8"); String txt = entity.getContent("UTF-8");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment