getForecast static method
获取未来3天天气预报
Implementation
static Future<List<WeatherInfo>> getForecast({
String city = '北京',
int days = 3,
}) async {
try {
// 返回模拟数据
return _getMockForecast(city, days);
} catch (e) {
Logger().error('获取天气预报失败', e);
return _getMockForecast(city, days);
}
}