修改天气视图:解决天气子地区显示错误问题 46/3 46/head
authorluozheng <1732036298@qq.com>
Thu, 18 Apr 2024 10:46:23 +0000 (18:46 +0800)
committerluozheng <1732036298@qq.com>
Thu, 18 Apr 2024 10:46:23 +0000 (18:46 +0800)
code/sdk/application/wearable/fd230app/nativeui/weather/src/WeatherModel.cpp

index daa9e56..2fd144f 100644 (file)
@@ -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);
     }