* Date: 2026-6-2 */ if (!defined('ROOT_PATH')) exit; $row = $id>0 ? $db->fetch("SELECT * FROM {$db->table('download')} WHERE id=".intval($id)." AND status=1") : null; if (!$row) { echo '内容不存在'; return; } $currentChannel = null; if (!empty($row['channel_id'])) { $currentChannel = $db->fetch("SELECT * FROM {$db->table('channel')} WHERE id=".intval($row['channel_id'])); } if (!$currentChannel) { $currentChannel = array( 'id' => 0, 'channel_name' => '下载中心', 'channel_thumb' => '' ); } $fileUrl = isset($row['file_path']) ? trim($row['file_path']) : ''; $content = isset($row['content']) ? $row['content'] : ''; ?>