@ -37,7 +37,7 @@ public class ScheduledService {
* @description: 从中央气象台获取省份列表
* @Param: null
*/
@Scheduled(cron = "0/10 * * * * *")
@Scheduled(cron = "0 0 0/12 * * *")
public void getNmcWeatherProvince() {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
CmIp ipAddress = new CmIp();
@ -38,7 +38,10 @@ public class QueryHelper {
public static String queryIP(String ip) {
String url = "https://api.ip138.com/query/?ip=" + ip + "&datatype=" + DATATYPE;
System.out.println("url:"+url);
String token = "b8b56497ffff4e110a3bf44193f7f751";
//String token = "b8b56497ffff4e110a3bf44193f7f751";
String token = "dfeaa72fc70037534c4b4e8d831a5207";
return get(url, token);
}