修复睡眠数据存储bug 887/1 887/head
authorpenglei <1624952103@qq.com>
Fri, 6 Sep 2024 01:38:57 +0000 (09:38 +0800)
committerpenglei <1624952103@qq.com>
Fri, 6 Sep 2024 01:38:57 +0000 (09:38 +0800)
code/sdk/application/wearable/fd230app/nativeui/sleep/src/SleepModel.cpp

index d8e6d54..43f2b15 100644 (file)
@@ -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)