From 7d26b54bd7af0891c1cbd571d905f6c4faa79b61 Mon Sep 17 00:00:00 2001 From: fzlins Date: Thu, 28 Sep 2023 19:58:42 -0400 Subject: [PATCH] =?UTF-8?q?fix(np):=20=E6=97=A7=E7=89=88=E6=9E=B6=E6=9E=84?= =?UTF-8?q?ipv6=E5=A4=9A=E9=87=8D=E6=B1=87=E6=8A=A5=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=81=9A=E7=A7=8D=E6=95=B0=E5=92=8C=E5=81=9A=E7=A7=8D=E9=87=8F?= =?UTF-8?q?=E7=BF=BB=E5=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/schemas/NexusPHP/config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resource/schemas/NexusPHP/config.json b/resource/schemas/NexusPHP/config.json index 2cac6458f..7fa008aa1 100644 --- a/resource/schemas/NexusPHP/config.json +++ b/resource/schemas/NexusPHP/config.json @@ -132,11 +132,11 @@ "fields": { "seeding": { "selector": ["tr:not(:eq(0))"], - "filters": ["query.find('td.rowfollow:eq(2)').length != 0 ? query.find('td.rowfollow:eq(2)').length : query.length"] + "filters": ["let l={}; query.each(function() { l[jQuery(this).find('td.rowfollow:eq(1) a').attr('href')] = jQuery(this).find('td.rowfollow:eq(2)').text(); }); Object.keys(l).length;"] }, "seedingSize": { "selector": ["tr:not(:eq(0))"], - "filters": ["query.find('td.rowfollow:eq(2)').length != 0 ? jQuery.map(query.find('td.rowfollow:eq(2)'), (item)=>{return $(item).text();}) : jQuery.map(query.find('td:eq(2)'), (item)=>{return $(item).text();})", "_self.getTotalSize(query)"] + "filters": ["let l={}; query.each(function() { l[jQuery(this).find('td.rowfollow:eq(1) a').attr('href')] = jQuery(this).find('td.rowfollow:eq(2)').text(); }); _self.getTotalSize(Object.values(l));"] } } },