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); } }