chante token

master
修改密码漏洞修复完成 3 months ago
parent 253ef864c9
commit c1ad5f6273

@ -37,7 +37,7 @@ public class ScheduledService {
* @description: * @description:
* @Param: null * @Param: null
*/ */
@Scheduled(cron = "0/10 * * * * *") @Scheduled(cron = "0 0 0/12 * * *")
public void getNmcWeatherProvince() { public void getNmcWeatherProvince() {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
CmIp ipAddress = new CmIp(); CmIp ipAddress = new CmIp();

@ -38,7 +38,10 @@ public class QueryHelper {
public static String queryIP(String ip) { public static String queryIP(String ip) {
String url = "https://api.ip138.com/query/?ip=" + ip + "&datatype=" + DATATYPE; String url = "https://api.ip138.com/query/?ip=" + ip + "&datatype=" + DATATYPE;
System.out.println("url:"+url); System.out.println("url:"+url);
String token = "b8b56497ffff4e110a3bf44193f7f751"; //String token = "b8b56497ffff4e110a3bf44193f7f751";
String token = "dfeaa72fc70037534c4b4e8d831a5207";
return get(url, token); return get(url, token);
} }
} }
Loading…
Cancel
Save