diff --git a/components/HorizontalBanner.tsx b/components/HorizontalBanner.tsx index 40f097e..6a0ed73 100644 --- a/components/HorizontalBanner.tsx +++ b/components/HorizontalBanner.tsx @@ -1,11 +1,18 @@ 'use client'; +import { isAdEnabled, getAdLink } from '@/utils/adConfig'; + export default function HorizontalBanner() { + // 如果广告未启用或已过期,不显示 + if (!isAdEnabled()) { + return null; + } + return (