From bc2eee516cd85371552724e982c3242156ccb588 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Fri, 24 Oct 2025 14:29:08 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3=E5=A4=A9=E6=B0=94=E6=9B=B4?= =?utf8?q?=E6=96=B0=20ui=E6=B6=88=E6=81=AF=E6=9C=AA=E8=B0=83=E7=94=A8?= =?utf8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230/nativeapp/nativeui/weather/src/WeatherModel.cpp | 3 ++- .../fd272/nativeapp/nativeui/weather/src/WeatherModel.cpp | 3 ++- .../n9/nativeapp/nativeui/weather/src/WeatherModel.cpp | 3 ++- code/sdk/zhihui/services/ble_service/blemoder/bleInstruct.cpp | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) 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); } -- 2.17.1