From 96458778a0dc7e1b91d3a47a4107e7bbe73bf881 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Wed, 24 Jul 2024 09:46:12 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= =?utf8?q?=E8=A1=A8=E7=9B=98=E8=B7=AF=E5=BE=84=E6=8E=A5=E5=8F=A3=E5=87=BD?= =?utf8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativelauncher/include/UiConfig.h | 2 +- .../wearable/fd230app/nativeui/clock/src/MainClockView.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativelauncher/include/UiConfig.h b/code/sdk/application/wearable/fd230app/nativelauncher/include/UiConfig.h index e8a3130f4..a0e091e7f 100644 --- a/code/sdk/application/wearable/fd230app/nativelauncher/include/UiConfig.h +++ b/code/sdk/application/wearable/fd230app/nativelauncher/include/UiConfig.h @@ -68,7 +68,7 @@ namespace OHOS #define APP_VIDEO_PATH "/user/video" #define APP_DEFAULT_DIAL_PATH "/user/dial" /*默认表盘安装路径*/ #define APP_DOWNLOAD_DIAL_PATH "/user/userdata/dial" /*表盘市场安装路径*/ -#define APP_CUSTOM_DIAL_PATH "/user/userdata/constom_dial/" /*自定义表盘安装路径*/ +#define APP_CUSTOM_DIAL_PATH "/user/userdata/constom_dial" /*自定义表盘安装路径*/ #define APP_LIST_PATH "/user/res/applist_icon" /* ---------------------------------- 卡片管理 --------------------------------- */ static constexpr const char *CARD_CONFIG_PATH = "/user/cardconfig.bin"; diff --git a/code/sdk/application/wearable/fd230app/nativeui/clock/src/MainClockView.cpp b/code/sdk/application/wearable/fd230app/nativeui/clock/src/MainClockView.cpp index 00c04efc3..851aed081 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/clock/src/MainClockView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/clock/src/MainClockView.cpp @@ -214,8 +214,8 @@ namespace OHOS return ""; // 或者返回一个空字符串 } - std::string folderPath = APP_CUSTOM_DIAL_PATH + std::to_string(Id); - CreateDirectoryIfNotExists(folderPath); // 确保目录存在 + std::string folderPath = std::string(APP_CUSTOM_DIAL_PATH) + "/" + std::to_string(Id); // 修复这一行 + CreateDirectoryIfNotExists(folderPath); // 确保目录存在 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Directory is %s", folderPath.c_str()); return folderPath; // 返回目录路径 -- 2.17.1