From 16b3cccf6b8f5371dc4dcbe985bf4a63bd53959f Mon Sep 17 00:00:00 2001 From: xiaowonet <33050133+xiaowonet@users.noreply.github.com> Date: Thu, 4 Jan 2024 20:59:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B0=8F=E7=BA=A2=E4=B9=A6):=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=BC=B9=E7=AA=97=20(#3466)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(小红书): 更新弹窗 两个快照text不同,但id相同,故使用id作为规则 * Update com.xingin.xhs.ts * chore(actions): check_format_lint --------- Co-authored-by: github-actions[bot] --- src/apps/com.xingin.xhs.ts | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/apps/com.xingin.xhs.ts b/src/apps/com.xingin.xhs.ts index 545f6e96..8240be90 100644 --- a/src/apps/com.xingin.xhs.ts +++ b/src/apps/com.xingin.xhs.ts @@ -40,10 +40,20 @@ export default defineAppConfig({ actionMaximum: 1, matchTime: 30000, resetMatch: 'app', - activityIds: 'com.xingin.xhs.index.v2.IndexActivityV2', - rules: - '@ImageView[clickable=true] <2 FrameLayout < LinearLayout >2 [text="立即安装"]', - snapshotUrls: 'https://i.gkd.li/import/13246890', + rules: [ + { + key: 0, + matches: + '@ImageView[clickable=true] <2 FrameLayout +3 FrameLayout > Button[text="立即安装"]', + snapshotUrls: 'https://i.gkd.li/import/13246890', + }, + { + actionMaximumKey: 0, + matches: + '@ImageView[clickable=true] <2 FrameLayout +3 FrameLayout > Button[text="立即参与内测"]', + snapshotUrls: 'https://i.gkd.li/import/13741680', + }, + ], }, { enable: false,