'channel']); $id = (int)($_POST['id'] ?? 0); if ($id <= 0) { Response::error('参数错误', 400); } $pdo = DB::getInstance()->getPdo(); $stmt = $pdo->prepare("UPDATE channel_plans SET is_active = 0 WHERE id = ?"); $stmt->execute([$id]); if ($stmt->rowCount() === 0) { Response::error('计划不存在'); } logCurrent('delete', 'channel_plan', 'channel_plans', $id, ['soft_delete' => true]); Response::success(null, '删除成功');