修复编译问题 & 将人机验证组件动态化
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user