Browse Source

110举报投诉

master
laishajiang 2 years ago
parent
commit
d3ad2ded75
  1. 2
      mailbox-lan/src/main/java/com/biutag/lan/service/DataSyncScheduler.java
  2. 2
      mailbox-lan/src/main/java/com/biutag/lan/service/ReportService.java

2
mailbox-lan/src/main/java/com/biutag/lan/service/DataSyncScheduler.java

@ -9,7 +9,7 @@ public class DataSyncScheduler {
public DataSyncScheduler(ReportService dataSourceService) {
this.dataSourceService = dataSourceService;
}
@Scheduled(fixedRate = 3 * 60 * 1000) // 每5分钟执行一次
@Scheduled(fixedRate = 60 * 60 * 1000) // 每5分钟执行一次
public void syncDataSourcesPeriodically() {
dataSourceService.syncData();
}

2
mailbox-lan/src/main/java/com/biutag/lan/service/ReportService.java

@ -118,7 +118,7 @@ public class ReportService extends ServiceImpl<ReportMapper, Report> {
public static List<Report> getReomteReport() {
log.info("110连接成功,准备拉取110数据服务");
String url = String.format("http://127.0.0.1:8083/api/server/report/list");
String url = String.format("http://65.47.60.185:8083/api/server/report/list");
HttpResponse httpResponse = HttpUtil.createGet(url)
.execute();
JSONObject data = JSON.parseObject(httpResponse.body());

Loading…
Cancel
Save