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);