Merge #3206 into fd272 from refs/changes/3206/head 3207/target/1 3208/target/1
author袁清梦 <3449750381@qq.com>
Sat, 7 Feb 2026 09:35:09 +0000 (09:35 +0000)
committer袁清梦 <3449750381@qq.com>
Sat, 7 Feb 2026 09:35:09 +0000 (09:35 +0000)
睡眠时间更新 删除小睡的更新

* refs/changes/3206/head: (1 commits squashed)

  - 睡眠时间更新 删除小睡的更新

Signed-off-by: Caisking <3449750381@qq.com>
Merged-by: Caisking <3449750381@qq.com>
link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/3206
code/sdk/application/wearable/fd272/nativeapp/nativeui/sleep/src/SleepModel.cpp

index 0a6a0ee..2fa4218 100644 (file)
@@ -384,8 +384,9 @@ namespace OHOS
     cywee_get_sleep_time_data(&nap_fall_asleep_timestamp, &nap_wake_up_timestamp, &nap_total, NAP_DATA_TYPE);
 #endif
 
-  //获取最新的出睡时间
-  sleep_update_time = nap_wake_up_timestamp>sleep_wake_up_timestamp?nap_wake_up_timestamp:sleep_wake_up_timestamp;
+  //获取最新的出睡时间 目前只需要睡眠时间
+  // sleep_update_time = nap_wake_up_timestamp>sleep_wake_up_timestamp?nap_wake_up_timestamp:sleep_wake_up_timestamp;
+  sleep_update_time = sleep_wake_up_timestamp;
 
   OHOS::SleepModel::GetInstance().set_sleep_total(sleep_total);
   OHOS::SleepModel::GetInstance().set_nap_total(nap_total);