From: penglei <1624952103@qq.com> Date: Fri, 6 Sep 2024 01:38:57 +0000 (+0800) Subject: 修复睡眠数据存储bug X-Git-Tag: release_V1.2.70_20241020_135402~518^2~16 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=599d882d0817bc70256094a0c10255ba3400929f;p=mirrors%2FFD230.git 修复睡眠数据存储bug --- 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)