From 56cee38066309dc5f5e1d6c375ab9c3f34d2d538 Mon Sep 17 00:00:00 2001 From: ted423 Date: Wed, 1 Jun 2022 17:56:21 +0800 Subject: [PATCH] =?UTF-8?q?fix!:=20Common=E6=A8=A1=E6=9D=BF=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E8=84=9A=E6=9C=AC=EF=BC=8C=E9=9C=80=E8=A6=81=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E5=80=BC=E7=BB=93=E6=9E=9C=E4=B8=BA0=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9B=B4=E6=8E=A5=E8=BF=94=E5=9B=9ECell=EF=BC=8C?= =?UTF-8?q?=E5=88=AB=E5=AD=97=E4=BF=AE=E6=AD=A3Sell->Cell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/schemas/Common/getSearchResult.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resource/schemas/Common/getSearchResult.js b/resource/schemas/Common/getSearchResult.js index cfb3ea488..40aa34e12 100644 --- a/resource/schemas/Common/getSearchResult.js +++ b/resource/schemas/Common/getSearchResult.js @@ -31,7 +31,7 @@ let selector = options.resultSelector; let dataRowSelector = options.entry.dataRowSelector || "> tbody > tr"; selector = selector.replace(dataRowSelector, ""); - let sellSelector = options.entry.dataSellSelector || ">td"; + let cellSelector = options.entry.dataCellSelector || ">td"; // 获取数据表格 let table = options.page.find(selector); // 获取种子列表行 @@ -68,7 +68,7 @@ // 遍历数据行 for (let index = beginRowIndex; index < rows.length; index++) { const row = rows.eq(index); - let cells = row.find(sellSelector); + let cells = row.find(cellSelector); let title = this.getTitle(row, cells, fieldIndex); @@ -145,7 +145,7 @@ let result = Searcher.getFieldValue(this.site, parent, fieldName); - if (!result && cell) { + if (!result && cell && result !== 0) { if (returnCell) { return cell; }