From: luozheng <1732036298@qq.com> Date: Thu, 16 Oct 2025 09:52:59 +0000 (+0800) Subject: 禅道1447,解决APP-在APP上无法成功操作设备重启问题 X-Git-Tag: V1.0.9_20251128_194606_LN~223 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=a33f2f6e32c08aa4cd220f6b4f87cc6d8f3c63ee;p=mirrors%2FFD230.git 禅道1447,解决APP-在APP上无法成功操作设备重启问题 --- 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;