From: 彭磊 <1624952103@qq.com> Date: Fri, 6 Sep 2024 07:14:15 +0000 (+0000) Subject: Merge #887 into sdk602patch0626 from refs/changes/887/head X-Git-Tag: release_V1.2.70_20241020_135402~529^2~2^2~2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=d3ae6b100ea931c924b5926fd5b40b844beee558;p=mirrors%2FFD230.git Merge #887 into sdk602patch0626 from refs/changes/887/head 修复睡眠数据存储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 --- 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)