= 1073741824) { return number_format($bytes / 1073741824, 2) . ' GB'; } elseif ($bytes >= 1048576) { return number_format($bytes / 1048576, 2) . ' MB'; } elseif ($bytes >= 1024) { return number_format($bytes / 1024, 2) . ' KB'; } elseif ($bytes > 0) { return $bytes . ' B'; } else { return '0 B'; } } // 验证App ID if (!isset($_GET['id']) || !is_numeric($_GET['id'])) { header('Location: index.php?error=无效的App ID'); exit; } $appId = $_GET['id']; // 获取App信息 $app = null; $getAppSql = "SELECT * FROM apps WHERE id = ?"; $stmt = $conn->prepare($getAppSql); $stmt->bind_param("i", $appId); $stmt->execute(); $result = $stmt->get_result(); if ($result->num_rows === 0) { header('Location: index.php?error=App不存在'); exit; } $app = $result->fetch_assoc(); // 获取所有版本 $versions = []; $getVersionsSql = "SELECT * FROM app_versions WHERE app_id = ? ORDER BY created_at DESC"; $stmt = $conn->prepare($getVersionsSql); $stmt->bind_param("i", $appId); $stmt->execute(); $result = $stmt->get_result(); while ($row = $result->fetch_assoc()) { $versions[] = $row; } ?> <?php echo htmlspecialchars($app['name']); ?> - 版本历史

- 版本历史

查看和下载该应用的所有历史版本

暂无版本记录
版本
发布日期: