From 125518aa98f019c6b14f2f302646bf33da539fc3 Mon Sep 17 00:00:00 2001 From: leon <916117771@qq.com> Date: Fri, 10 Apr 2026 09:02:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(ota):=20=E6=B7=BB=E5=8A=A0OTA=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 实现OTA版本列表页面,支持版本信息展示 - 添加版本名称、版本号、APK文件等字段显示 - 集成文件上传和SHA-256校验功能 - 实现强制更新开关和状态管理 - 添加发布按钮支持版本发布操作 - 集成表格增删改查基础功能 - 实现文件大小格式化显示 - 添加目标设备 --- application/admin/controller/ota/Version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/admin/controller/ota/Version.php b/application/admin/controller/ota/Version.php index f3e9e60..2407088 100644 --- a/application/admin/controller/ota/Version.php +++ b/application/admin/controller/ota/Version.php @@ -55,7 +55,7 @@ class Version extends Backend // 计算 APK 文件信息 if ($row['apk_file']) { - $fullPath = root_path() . 'public' . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . ltrim($row['apk_file'], '/'); + $fullPath = ROOT_PATH . 'public' . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . ltrim($row['apk_file'], '/'); if (file_exists($fullPath)) { $row->file_size = filesize($fullPath); $row->sha256 = hash_file('sha256', $fullPath);