优化运动过程中可以弹出每日目标
authorCaisking <Casiking@zhihuishixun.com>
Mon, 2 Mar 2026 12:24:34 +0000 (20:24 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Mon, 2 Mar 2026 12:24:34 +0000 (20:24 +0800)
code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp
code/sdk/zhihui/utilscpp/custom_utilscpp.cpp

index cd5c49a..30793ca 100644 (file)
@@ -1065,10 +1065,10 @@ void MsgCenterNotifyLowPowerAlarmProc(const Topic topic, Request* req)
                  std::bind(&OHOS::GoalotherView::GoalViewrefresh,  OHOS::GoalotherView::GetInstance() ));
              }
  
-             /* 运动过程中不弹目标达成,避免打扰用户;使用 runtime 训练状态(0 未训练/结束,1 训练中) */
-             if (uapi_dev_runtime_get_train_status() != 0) {
-                 return;
-             }
+            //  /* 运动过程中不弹目标达成,避免打扰用户;使用 runtime 训练状态(0 未训练/结束,1 训练中) */
+            //  if (uapi_dev_runtime_get_train_status() != 0) {
+            //      return;
+            //  }
  
              /* 同时只弹一个:本轮只发布第一个达成的目标,顺序:步数 -> 距离 -> 燃脂 -> 站立 -> 卡路里 */
              bool published = false;
index 04f6912..b58317f 100644 (file)
@@ -529,7 +529,7 @@ void CustomEventPublish(uint16_t topic, uint8_t *data, uint32_t size) {
 
     BroadcastApi *broadcastApi = nullptr;  
     IUnknown *api = nullptr;  
-    WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "CustomEventPublish topic=%u!!", topic);  
+    WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "CustomEventPublish topic=%u!!", topic);  
 
     void *publishData = nullptr;  
     if (size > 0) {