From: luozheng <1732036298@qq.com> Date: Fri, 24 Oct 2025 06:29:08 +0000 (+0800) Subject: 解决天气更新 ui消息未调用问题 X-Git-Tag: V1.0.9_20251128_194606_LN~178 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=bc2eee516cd85371552724e982c3242156ccb588;p=mirrors%2FFD230.git 解决天气更新 ui消息未调用问题 --- diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/weather/src/WeatherModel.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/weather/src/WeatherModel.cpp index cdf7a353f..4d04a18a4 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/weather/src/WeatherModel.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/weather/src/WeatherModel.cpp @@ -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; diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/weather/src/WeatherModel.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/weather/src/WeatherModel.cpp index cdf7a353f..4d04a18a4 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/weather/src/WeatherModel.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/weather/src/WeatherModel.cpp @@ -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; diff --git a/code/sdk/application/wearable/n9/nativeapp/nativeui/weather/src/WeatherModel.cpp b/code/sdk/application/wearable/n9/nativeapp/nativeui/weather/src/WeatherModel.cpp index cdf7a353f..4d04a18a4 100644 --- a/code/sdk/application/wearable/n9/nativeapp/nativeui/weather/src/WeatherModel.cpp +++ b/code/sdk/application/wearable/n9/nativeapp/nativeui/weather/src/WeatherModel.cpp @@ -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; diff --git a/code/sdk/zhihui/services/ble_service/blemoder/bleInstruct.cpp b/code/sdk/zhihui/services/ble_service/blemoder/bleInstruct.cpp index b2bd59cfc..4af3948cd 100644 --- a/code/sdk/zhihui/services/ble_service/blemoder/bleInstruct.cpp +++ b/code/sdk/zhihui/services/ble_service/blemoder/bleInstruct.cpp @@ -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); }