修复提取 ip 接口json类型返回值错误问题;完善 ip 提取页响应式设计

This commit is contained in:
2025-06-09 16:55:44 +08:00
parent 0f34b938e5
commit f15fa7f72d
15 changed files with 517 additions and 531 deletions

View File

@@ -47,8 +47,7 @@ export async function GET(req: NextRequest) {
switch (format) {
case 'json':
const body = JSON.stringify(params)
return NextResponse.json(body)
return NextResponse.json(result.data)
case 'text':
const text = result.data.map((item) => {
const list = [item.host, item.port]