解决天气更新 ui消息未调用问题 2600/1
authorluozheng <1732036298@qq.com>
Fri, 24 Oct 2025 06:29:08 +0000 (14:29 +0800)
committerluozheng <1732036298@qq.com>
Fri, 24 Oct 2025 06:29:08 +0000 (14:29 +0800)
code/sdk/application/wearable/fd230/nativeapp/nativeui/weather/src/WeatherModel.cpp
code/sdk/application/wearable/fd272/nativeapp/nativeui/weather/src/WeatherModel.cpp
code/sdk/application/wearable/n9/nativeapp/nativeui/weather/src/WeatherModel.cpp
code/sdk/zhihui/services/ble_service/blemoder/bleInstruct.cpp

index cdf7a35..4d04a18 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "main/include/dial/DialModelWeather.h"
 #include "main/include/dial/DialModelWeatherStr.h"
+#include "uiservice/include/ui_service.h"
 
 namespace OHOS
 {
@@ -432,7 +433,7 @@ void set_weather_one_data_(int tempMin, int iconDay,int fxDate, int tempMax, cha
 
 void  ble_UpdateMainWeatherData_(void)
 {
-    // SendMsgToUIService(UI_UPDATE_WEATHER_DATA,0,nullptr,0);
+    SendMsgToUIService(UI_UPDATE_WEATHER_DATA,0,nullptr,0);
 }
 
 extern bleInstruct_t_ bleInstruct_t;
index cdf7a35..4d04a18 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "main/include/dial/DialModelWeather.h"
 #include "main/include/dial/DialModelWeatherStr.h"
+#include "uiservice/include/ui_service.h"
 
 namespace OHOS
 {
@@ -432,7 +433,7 @@ void set_weather_one_data_(int tempMin, int iconDay,int fxDate, int tempMax, cha
 
 void  ble_UpdateMainWeatherData_(void)
 {
-    // SendMsgToUIService(UI_UPDATE_WEATHER_DATA,0,nullptr,0);
+    SendMsgToUIService(UI_UPDATE_WEATHER_DATA,0,nullptr,0);
 }
 
 extern bleInstruct_t_ bleInstruct_t;
index cdf7a35..4d04a18 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "main/include/dial/DialModelWeather.h"
 #include "main/include/dial/DialModelWeatherStr.h"
+#include "uiservice/include/ui_service.h"
 
 namespace OHOS
 {
@@ -432,7 +433,7 @@ void set_weather_one_data_(int tempMin, int iconDay,int fxDate, int tempMax, cha
 
 void  ble_UpdateMainWeatherData_(void)
 {
-    // SendMsgToUIService(UI_UPDATE_WEATHER_DATA,0,nullptr,0);
+    SendMsgToUIService(UI_UPDATE_WEATHER_DATA,0,nullptr,0);
 }
 
 extern bleInstruct_t_ bleInstruct_t;
index b2bd59c..4af3948 100644 (file)
@@ -1213,6 +1213,7 @@ void set_weather_one_data(int tempMin, int iconDay,int fxDate, int tempMax, char
 void  ble_UpdateMainWeatherData(void)
 {
     // SendMsgToUIService(UI_UPDATE_WEATHER_DATA,0,nullptr,0);
+    SAFE_CALL(bleInstruct_t.ble_UpdateMainWeatherData);
 }