修复编译问题 & 将人机验证组件动态化

This commit is contained in:
2025-12-20 18:05:46 +08:00
parent c979765a77
commit adc8195d53
8 changed files with 13 additions and 73 deletions

View File

@@ -2,9 +2,8 @@ import {NextRequest, NextResponse} from 'next/server'
import {createChannels} from '@/actions/channel'
export async function GET(req: NextRequest) {
const params = req.nextUrl.searchParams
try {
const params = req.nextUrl.searchParams
const resource_id = params.get('i')
if (!resource_id) {
throw new Error('需要指定资源ID')