From 09bc95de0e569e83f7f5210c3eb51e26eab7d3f9 Mon Sep 17 00:00:00 2001 From: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Date: Sun, 3 Nov 2024 18:57:25 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E4=BA=AC=E4=B8=9C):=20=E5=BC=80=E5=B1=8F?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=20(#451)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Co-authored-by: AIsouler --- src/apps/com.jingdong.app.mall.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/apps/com.jingdong.app.mall.ts b/src/apps/com.jingdong.app.mall.ts index 95b4e3b2..7677e7a6 100644 --- a/src/apps/com.jingdong.app.mall.ts +++ b/src/apps/com.jingdong.app.mall.ts @@ -7,19 +7,26 @@ export default defineGkdApp({ { key: 0, name: '开屏广告', - fastQuery: true, matchTime: 10000, actionMaximum: 1, resetMatch: 'app', + actionMaximumKey: 0, priorityTime: 10000, rules: [ { + key: 0, + fastQuery: true, excludeActivityIds: 'com.jd.lib.search.view.Activity.SearchActivity', matches: '[text*="跳过"][text.length<10][visibleToUser=true]', - snapshotUrls: [ - 'https://i.gkd.li/i/16323111', - 'https://i.gkd.li/i/16323115', // 防止误触 - ], + snapshotUrls: 'https://i.gkd.li/i/16323111', + excludeSnapshotUrls: 'https://i.gkd.li/i/16323115', + }, + { + key: 1, + excludeActivityIds: 'com.jd.lib.search.view.Activity.SearchActivity', + matches: '[text*="跳过"][text.length<10][visibleToUser=true]', + snapshotUrls: 'https://i.gkd.li/i/17602356', // "跳过" 节点不支持fastQuery + excludeSnapshotUrls: 'https://i.gkd.li/i/16323115', }, ], },