禅道1447,解决APP-在APP上无法成功操作设备重启问题
authorluozheng <1732036298@qq.com>
Thu, 16 Oct 2025 09:52:59 +0000 (17:52 +0800)
committerluozheng <1732036298@qq.com>
Thu, 16 Oct 2025 09:52:59 +0000 (17:52 +0800)
code/sdk/application/wearable/fd230/service/msg_center/src/msg_center_customer.cpp
code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp
code/sdk/application/wearable/n9/service/msg_center/src/msg_center_customer.cpp

index 3f96bdf..c311cc7 100644 (file)
@@ -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;
index eb15c2b..5ece3e4 100644 (file)
@@ -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;
index ab4e8b4..4ddd246 100644 (file)
@@ -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;