From c0446e37ec6673bbfb63f594849e7993e6d9a47c Mon Sep 17 00:00:00 2001 From: Caisking Date: Tue, 27 Jan 2026 16:03:03 +0800 Subject: [PATCH] =?utf8?q?=E5=85=B3=E9=97=AD=E7=9D=A1=E7=9C=A0=E9=A1=B5?= =?utf8?q?=E9=9D=A2=E7=9A=84=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeapp/nativeui/sleep/src/SleepView.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/src/SleepView.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/src/SleepView.cpp index b46aff780..8c7276fef 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/src/SleepView.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/src/SleepView.cpp @@ -11,7 +11,7 @@ static constexpr const char *prossimagePath = "/user/res/step/step_b.bin"; static SleepView *g_pSleepView{nullptr}; SleepView::SleepView() { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SleepView::SleepView"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SleepView::SleepView"); SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION); SetViewIndex(0); // 视图索引 @@ -19,7 +19,7 @@ SleepView::SleepView() { } SleepView::~SleepView() { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, " SleepView::~SleepView"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, " SleepView::~SleepView"); ClearAll(); g_pSleepView = nullptr; @@ -41,11 +41,11 @@ void SleepView::SleepDataRefresh() { #endif // 检查是否超过24小时 if (sleep_hour >= 24) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "异常:睡眠时长超过24小时"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "异常:睡眠时长超过24小时"); return; } - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SleepDataRefresh %d %d sleep_goal:%d total_sleep:%d", sleep_hour, sleep_min, sleep_goal * 60, total_sleep); @@ -73,7 +73,7 @@ void SleepView::SleepDataRefresh() { } // 日志输出进度百分比 - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Progress value: %.2f%%", + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Progress value: %.2f%%", progress_value * 100); // 显示为百分比 // 更新进度条 @@ -205,7 +205,7 @@ bool SleepView::InitPage(void) { * --------------------------------- */ circleProgress_ = new UICircleProgress(); if (circleProgress_ == nullptr) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "circleProgress new fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "circleProgress new fail"); return false; } circleProgress_->SetPosition(0, 0); @@ -243,9 +243,9 @@ bool SleepView::InitPage(void) { } bool SleepView::InitView(void *caller) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SleepView InitView %p", caller); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SleepView InitView %p", caller); if (InitPage() == false) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SleepView::InitPage fail"); + WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "SleepView::InitPage fail"); return false; } SleepDataRefresh(); // 刷新数据 -- 2.17.1