From d3ae6b100ea931c924b5926fd5b40b844beee558 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=BD=AD=E7=A3=8A?= <1624952103@qq.com> Date: Fri, 6 Sep 2024 07:14:15 +0000 Subject: [PATCH] Merge #887 into sdk602patch0626 from refs/changes/887/head MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 修复睡眠数据存储bug * refs/changes/887/head: (1 commits squashed) - 修复睡眠数据存储bug Signed-off-by: aliyun6865282430 <1624952103@qq.com> Reviewed-by: snickersun@163.com Merged-by: snickersun@163.com CR-link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/887 --- .../wearable/fd230app/nativeui/sleep/src/SleepModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepModel.cpp index d8e6d548e..43f2b15da 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepModel.cpp @@ -2,7 +2,7 @@ * @Author: penglei 1624952103@qq.com * @Date: SLEPPNOTIFY24-06-26 19:36:48 * @LastEditors: penglei 1624952103@qq.com - * @LastEditTime: 2024-09-05 09:33:51 + * @LastEditTime: 2024-09-06 09:25:33 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepModel.cpp * @Description: * @@ -249,11 +249,11 @@ namespace OHOS { memset(status_file_path,0,sizeof(status_file_path)); sprintf_s(status_file_path, 64, SLEEP_STATUS_PATH, day); - fp = fopen(time_file_path, "wb+"); + fp = fopen(status_file_path, "wb+"); } else { - fp = fopen(time_file_path, "ab+"); + fp = fopen(status_file_path, "ab+"); } if (fp == NULL) -- 2.17.1