提取不显示主机格式字段

This commit is contained in:
Eamon-meng
2026-06-17 13:47:03 +08:00
parent bdd4424f44
commit 96abb97a9a
3 changed files with 8 additions and 9 deletions

View File

@@ -14,8 +14,7 @@
| b | string | 否 | 归属地城市。默认全局随机 | | b | string | 否 | 归属地城市。默认全局随机 |
| s | string | 否 | 归属地运营商。默认全局随机 | | s | string | 否 | 归属地运营商。默认全局随机 |
| d | string | 否 | 是否去重1 - 是0 - 否。默认为是 | | d | string | 否 | 是否去重1 - 是0 - 否。默认为是 |
| rt | string | 否 | 返回类型1 - TXT2 - JSON。默认 TXT | rt | string | 否 | 返回类型1 - TXT2 - JSON。默认 TXT |
| rh | string | 否 | 返回时主机字段的格式1 - 域名2 - IP。默认为域名 |
| rs | number[] | 否 | 返回时要使用的分隔符,值为该字符的 ascii 编码,可以有多个字符,多个字符用半角逗号连接。默认为 13,10即回车 + 换行(\r\n | | rs | number[] | 否 | 返回时要使用的分隔符,值为该字符的 ascii 编码,可以有多个字符,多个字符用半角逗号连接。默认为 13,10即回车 + 换行(\r\n |
| rb | number[] | 否 | 返回时要使用的换行符,值为该字符的 ascii 编码,可以有多个字符,多个字符用半角逗号连接。默认为 124即垂直线 \| | | rb | number[] | 否 | 返回时要使用的换行符,值为该字符的 ascii 编码,可以有多个字符,多个字符用半角逗号连接。默认为 124即垂直线 \| |
| n | number | 否 | 提取数量。默认为 1 | | n | number | 否 | 提取数量。默认为 1 |

View File

@@ -31,7 +31,7 @@ const schema = z.object({
authType: z.enum(['1', '2'], {required_error: '请选择认证方式'}), authType: z.enum(['1', '2'], {required_error: '请选择认证方式'}),
distinct: z.enum(['1', '0'], {required_error: '请选择去重选项'}), distinct: z.enum(['1', '0'], {required_error: '请选择去重选项'}),
format: z.enum(['text', 'json'], {required_error: '请选择导出格式'}), format: z.enum(['text', 'json'], {required_error: '请选择导出格式'}),
hostFormat: z.enum(['domain', 'ip'], {required_error: '请选择主机格式'}), // hostFormat: z.enum(['domain', 'ip'], {required_error: '请选择主机格式'}),
separator: z.string({required_error: '请选择分隔符'}), separator: z.string({required_error: '请选择分隔符'}),
breaker: z.string({required_error: '请选择换行符'}), breaker: z.string({required_error: '请选择换行符'}),
count: z.number({required_error: '请输入有效的数量'}).min(1), count: z.number({required_error: '请输入有效的数量'}).min(1),
@@ -53,7 +53,7 @@ export default function Extract(props: ExtractProps) {
authType: '1', authType: '1',
count: 1, count: 1,
distinct: '1', distinct: '1',
hostFormat: 'ip', // hostFormat: 'ip',
format: 'text', format: 'text',
breaker: '13,10', breaker: '13,10',
separator: '124', separator: '124',
@@ -221,7 +221,7 @@ const FormFields = memo(() => {
</FormField> </FormField>
{/* 主机格式 */} {/* 主机格式 */}
<FormField name="hostFormat" className="md:max-w-[calc(160px*2+1rem)]" label="主机格式" classNames={{label: 'max-md:text-sm'}}> {/* <FormField name="hostFormat" className="md:max-w-[calc(160px*2+1rem)]" label="主机格式" classNames={{label: 'max-md:text-sm'}}>
{({id, field}) => ( {({id, field}) => (
<RadioGroup <RadioGroup
onValueChange={field.onChange} onValueChange={field.onChange}
@@ -238,7 +238,7 @@ const FormFields = memo(() => {
</FormLabel> </FormLabel>
</RadioGroup> </RadioGroup>
)} )}
</FormField> </FormField> */}
{/* 分隔符 */} {/* 分隔符 */}
<FormField name="separator" className="md:max-w-[calc(160px*3+1rem*2)]" label="分隔符" classNames={{label: 'max-md:text-sm'}}> <FormField name="separator" className="md:max-w-[calc(160px*3+1rem*2)]" label="分隔符" classNames={{label: 'max-md:text-sm'}}>
@@ -711,7 +711,7 @@ function ApplyLink() {
} }
function link(values: Schema) { function link(values: Schema) {
const {resource, prov, city, isp, proto, authType, distinct, format: formatType, hostFormat, separator, breaker, count} = values const {resource, prov, city, isp, proto, authType, distinct, format: formatType, separator, breaker, count} = values
console.log(values, 'values') console.log(values, 'values')
const sp = new URLSearchParams() const sp = new URLSearchParams()
@@ -724,7 +724,7 @@ function link(values: Schema) {
if (isp != 'all') sp.set('s', isp) if (isp != 'all') sp.set('s', isp)
sp.set('d', distinct) sp.set('d', distinct)
sp.set('rt', formatType) sp.set('rt', formatType)
sp.set('rh', hostFormat) sp.set('rh', 'ip')
sp.set('rs', separator) sp.set('rs', separator)
sp.set('rb', breaker) sp.set('rb', breaker)
sp.set('n', String(count)) sp.set('n', String(count))

View File

@@ -1,7 +1,7 @@
export const siteConfig = { export const siteConfig = {
name: '蓝狐代理', name: '蓝狐代理',
shortName: '蓝狐代理', shortName: '蓝狐代理',
url: (process.env.API_BASE_URL || 'https://prov.lanhuip.com').replace(/\/$/, ''), url: (process.env.API_BASE_URL || 'https://lanhuip.com').replace(/\/$/, ''),
description: '蓝狐代理 - 稳定、高速、安全的代理服务提供HTTP代理、SOCKS5代理、动态IP、静态IP、爬虫代理等产品保护您的隐私畅游互联网', description: '蓝狐代理 - 稳定、高速、安全的代理服务提供HTTP代理、SOCKS5代理、动态IP、静态IP、爬虫代理等产品保护您的隐私畅游互联网',
keywords: ['代理ip', '国内代理ip', 'http代理', '动态ip', '静态ip', '爬虫代理', '独享代理', 'socks5代理'], keywords: ['代理ip', '国内代理ip', 'http代理', '动态ip', '静态ip', '爬虫代理', '独享代理', 'socks5代理'],
author: '蓝狐团队', author: '蓝狐团队',