From: Caisking Date: Mon, 2 Mar 2026 12:24:34 +0000 (+0800) Subject: 优化运动过程中可以弹出每日目标 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=796e972592cf2af10131a3cf2050e3941ae3dd41;p=mirrors%2FFD230.git 优化运动过程中可以弹出每日目标 --- 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 cd5c49a70..30793ca4c 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 @@ -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; diff --git a/code/sdk/zhihui/utilscpp/custom_utilscpp.cpp b/code/sdk/zhihui/utilscpp/custom_utilscpp.cpp index 04f69122b..b58317f47 100644 --- a/code/sdk/zhihui/utilscpp/custom_utilscpp.cpp +++ b/code/sdk/zhihui/utilscpp/custom_utilscpp.cpp @@ -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) {