Переглянути джерело

修改定时时间,修改企业微信告警

xiaowang 1 місяць тому
батько
коміт
84e7615478

+ 1 - 1
src/main/java/com/example/getweather/job/Download.java

@@ -18,7 +18,7 @@ public class Download {
 
     //每天0点下载数据     2025-02-10 应窦哥要求 小时气象源切换为xmo 日的还用彩云
     //@Scheduled(fixedDelay = 600000000)
-    @Scheduled(cron = "0 15 1 * * ?")
+    @Scheduled(cron = "0 40 6,12 * * ?")
     public void download() {
         getWeather.download();
     }

+ 1 - 1
src/main/java/com/example/getweather/job/DownloadXmo.java

@@ -19,7 +19,7 @@ public class DownloadXmo {
     //曦谋数据接入。    2025-02-10 应窦哥要求 小时气象源切换为xmo
     //每天1点下载数据
     //@Scheduled(fixedDelay = 600000000)
-    @Scheduled(cron = "0 0 9,13 * * ?")
+    @Scheduled(cron = "0 0 7,13 * * ?")
     public void download() {
         getWeatherXmo.download();
     }

+ 2 - 2
src/main/java/com/example/getweather/util/WeixinPush.java

@@ -84,10 +84,10 @@ public class WeixinPush {
         String substanceTemp = "    ><font color=\"warning\">{}</font> \n" +
                 "事件描述:<font color=\"warning\">{}</font> \n" +
                 "{}";
-        String http = "[彩云开放平台](https://platform.caiyunapp.com/login?redirect=/dashboard/index)";
+        //String http = "[彩云开放平台](https://platform.caiyunapp.com/login?redirect=/dashboard/index)";
         //String alarm = "电力交易系统在获取天气数据时报错, 彩云天气API 额度已用尽";
         //String description = "接口调用异常";
-        String sb = StrUtil.format(substanceTemp, alarm, description, http);
+        String sb = StrUtil.format(substanceTemp, alarm, description, "");
 
         StringBuilder ccp = new StringBuilder();
         ccp.append("<@WangHongChen> ");