From: luozheng <1732036298@qq.com> Date: Thu, 18 Apr 2024 10:46:23 +0000 (+0800) Subject: 修改天气视图:解决天气子地区显示错误问题 X-Git-Tag: release_V1.2.70_20241020_135402~1162^2~7 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=refs%2Fchanges%2F46%2Fhead;p=mirrors%2FFD230.git 修改天气视图:解决天气子地区显示错误问题 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/weather/src/WeatherModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/weather/src/WeatherModel.cpp index daa9e5639..2fd144feb 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/weather/src/WeatherModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/weather/src/WeatherModel.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-04-08 18:40:09 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-04-16 09:48:10 + * @LastEditTime: 2024-04-18 18:42:24 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/weather/src/WeatherModel.cpp */ #include "weather/include/WeatherModel.h" @@ -164,7 +164,7 @@ namespace OHOS std::string WeatherModel::GetWeatherArea() { std::string city = Weather_data_t_address.city; - std::string subLocality = Weather_data_t_address.city; + std::string subLocality = Weather_data_t_address.subLocality; return (city + subLocality); }