Commit d4ecffe5 authored by wanglei's avatar wanglei

...

parent 69ecb3a3
...@@ -67,6 +67,11 @@ class Splash2Activity : BaseActivity<ActivitySplash2Binding>(), ...@@ -67,6 +67,11 @@ class Splash2Activity : BaseActivity<ActivitySplash2Binding>(),
} }
Thread { Thread {
if (!WeatherUtils.hasWeatherDataToday()) {
WeatherUtils.requestWeatherData()
}
val weatherCityBean = WeatherUtils.getWeatherEntity() val weatherCityBean = WeatherUtils.getWeatherEntity()
val weather = weatherCityBean?.list?.random() val weather = weatherCityBean?.list?.random()
if (weather != null) { if (weather != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment