From a33f2f6e32c08aa4cd220f6b4f87cc6d8f3c63ee Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Thu, 16 Oct 2025 17:52:59 +0800 Subject: [PATCH] =?utf8?q?=E7=A6=85=E9=81=931447,=E8=A7=A3=E5=86=B3APP-?= =?utf8?q?=E5=9C=A8APP=E4=B8=8A=E6=97=A0=E6=B3=95=E6=88=90=E5=8A=9F?= =?utf8?q?=E6=93=8D=E4=BD=9C=E8=AE=BE=E5=A4=87=E9=87=8D=E5=90=AF=E9=97=AE?= =?utf8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../msg_center/src/msg_center_customer.cpp | 40 +++++++++---------- .../msg_center/src/msg_center_customer.cpp | 40 +++++++++---------- .../msg_center/src/msg_center_customer.cpp | 40 +++++++++---------- 3 files changed, 60 insertions(+), 60 deletions(-) diff --git a/code/sdk/application/wearable/fd230/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/fd230/service/msg_center/src/msg_center_customer.cpp index 3f96bdfa1..c311cc7ee 100644 --- a/code/sdk/application/wearable/fd230/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/fd230/service/msg_center/src/msg_center_customer.cpp @@ -502,26 +502,26 @@ void MsgCenterNotifyDeviceBindProc(const Topic topic, Request* req) NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); NotificationManager::GetInstance()->ShowNotify(showDeviceUnbindingRequestNotify, (uint16_t)topic, true); break; - // case SHUTDOWN: - // WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, " SHUTDOWN"); - // set_lowpower_falg(3); - // if (NotificationManager::GetInstance()->HasNotifyShowing()) - // NotificationManager::GetInstance()->StopNotify(); - - // NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); - - // NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); - // //low_power_play(true); - // break; - // case REBOOT: - // set_lowpower_falg(4); - // if (NotificationManager::GetInstance()->HasNotifyShowing()) - // NotificationManager::GetInstance()->StopNotify(); - - // NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); - // NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); - // //low_power_play(false); - // break; + case SHUTDOWN: + WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, " SHUTDOWN"); + set_lowpower_falg(3); + if (NotificationManager::GetInstance()->HasNotifyShowing()) + NotificationManager::GetInstance()->StopNotify(); + + NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); + + NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); + //low_power_play(true); + break; + case REBOOT: + set_lowpower_falg(4); + if (NotificationManager::GetInstance()->HasNotifyShowing()) + NotificationManager::GetInstance()->StopNotify(); + + NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); + NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); + //low_power_play(false); + break; default: break; diff --git a/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp index eb15c2b3e..5ece3e42d 100644 --- a/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp @@ -497,26 +497,26 @@ void MsgCenterNotifyDeviceBindProc(const Topic topic, Request* req) NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); NotificationManager::GetInstance()->ShowNotify(showDeviceUnbindingRequestNotify, (uint16_t)topic, true); break; - // case SHUTDOWN: - // WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, " SHUTDOWN"); - // set_lowpower_falg(3); - // if (NotificationManager::GetInstance()->HasNotifyShowing()) - // NotificationManager::GetInstance()->StopNotify(); - - // NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); - - // NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); - // //low_power_play(true); - // break; - // case REBOOT: - // set_lowpower_falg(4); - // if (NotificationManager::GetInstance()->HasNotifyShowing()) - // NotificationManager::GetInstance()->StopNotify(); - - // NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); - // NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); - // //low_power_play(false); - // break; + case SHUTDOWN: + WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, " SHUTDOWN"); + set_lowpower_falg(3); + if (NotificationManager::GetInstance()->HasNotifyShowing()) + NotificationManager::GetInstance()->StopNotify(); + + NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); + + NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); + //low_power_play(true); + break; + case REBOOT: + set_lowpower_falg(4); + if (NotificationManager::GetInstance()->HasNotifyShowing()) + NotificationManager::GetInstance()->StopNotify(); + + NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); + NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); + //low_power_play(false); + break; default: break; diff --git a/code/sdk/application/wearable/n9/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/n9/service/msg_center/src/msg_center_customer.cpp index ab4e8b47b..4ddd2466f 100644 --- a/code/sdk/application/wearable/n9/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/n9/service/msg_center/src/msg_center_customer.cpp @@ -497,26 +497,26 @@ void MsgCenterNotifyDeviceBindProc(const Topic topic, Request* req) NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); NotificationManager::GetInstance()->ShowNotify(showDeviceUnbindingRequestNotify, (uint16_t)topic, true); break; - // case SHUTDOWN: - // WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, " SHUTDOWN"); - // set_lowpower_falg(3); - // if (NotificationManager::GetInstance()->HasNotifyShowing()) - // NotificationManager::GetInstance()->StopNotify(); - - // NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); - - // NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); - // //low_power_play(true); - // break; - // case REBOOT: - // set_lowpower_falg(4); - // if (NotificationManager::GetInstance()->HasNotifyShowing()) - // NotificationManager::GetInstance()->StopNotify(); - - // NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); - // NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); - // //low_power_play(false); - // break; + case SHUTDOWN: + WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, " SHUTDOWN"); + set_lowpower_falg(3); + if (NotificationManager::GetInstance()->HasNotifyShowing()) + NotificationManager::GetInstance()->StopNotify(); + + NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); + + NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); + //low_power_play(true); + break; + case REBOOT: + set_lowpower_falg(4); + if (NotificationManager::GetInstance()->HasNotifyShowing()) + NotificationManager::GetInstance()->StopNotify(); + + NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO); + NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true); + //low_power_play(false); + break; default: break; -- 2.17.1