From 9e7f33b1aac056dfb0994a27f7d24429a5b9c81e Mon Sep 17 00:00:00 2001 From: luyie Date: Fri, 1 Aug 2025 14:42:24 +0800 Subject: [PATCH] =?UTF-8?q?add:=E5=92=8C=E9=A3=8E=E5=A4=A9=E6=B0=94sdk?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=A1=E6=81=AF=E6=94=B9=E4=B8=BA=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/hnac/hzims/hzimsweather/HeWeatherInitialize.java | 2 +- .../src/main/java/com/hnac/hzims/weather/config/StartupRunner.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hzims-service-api/weather-api/src/main/java/com/hnac/hzims/hzimsweather/HeWeatherInitialize.java b/hzims-service-api/weather-api/src/main/java/com/hnac/hzims/hzimsweather/HeWeatherInitialize.java index 0f7c9a0..96cfe37 100644 --- a/hzims-service-api/weather-api/src/main/java/com/hnac/hzims/hzimsweather/HeWeatherInitialize.java +++ b/hzims-service-api/weather-api/src/main/java/com/hnac/hzims/hzimsweather/HeWeatherInitialize.java @@ -17,7 +17,7 @@ public class HeWeatherInitialize { HeWeatherInitialize.privateKey = privateKey; //HeWeatherInitialize.domain = "https://api.heweather.net"; //HeWeatherInitialize.domain = "https://devapi.qweather.com"; - HeWeatherInitialize.domain = "https://px5khukpur.re.qweatherapi.com"; + HeWeatherInitialize.domain = "https://mk5khnn58j.re.qweatherapi.com"; HeWeatherInitialize.geoDomain = "https://geoapi.heweather.net"; } diff --git a/hzims-service/weather/src/main/java/com/hnac/hzims/weather/config/StartupRunner.java b/hzims-service/weather/src/main/java/com/hnac/hzims/weather/config/StartupRunner.java index a9c06c4..fdc5592 100644 --- a/hzims-service/weather/src/main/java/com/hnac/hzims/weather/config/StartupRunner.java +++ b/hzims-service/weather/src/main/java/com/hnac/hzims/weather/config/StartupRunner.java @@ -17,11 +17,13 @@ public class StartupRunner implements CommandLineRunner { private String publicId; @Value("${hzims.weather.private-key}") private String privateKey; + @Value("${hzims.weather.domain}") + private String domain; @Override public void run(String... args) throws Exception { log.info(">>>>>>>>>>>>>>>服务启动执行,执行初始化天气操作<<<<<<<<<<<<<"); log.info("publicId:{},privateKey:{}",publicId,privateKey); - HeWeatherInitialize.init(publicId, privateKey); + HeWeatherInitialize.init(publicId, privateKey, domain); } }