From c106100e869a83a4a009fc51c6b408fb6e6f5a47 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sun, 3 Dec 2023 16:38:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=99=E9=87=8C=E5=8A=9E):=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=BC=B9=E7=AA=97=EF=BC=88=E8=A1=A5=E5=85=85=E8=A7=84?= =?UTF-8?q?=E5=88=99=EF=BC=89=20(#2716)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com.hanweb.android.zhejiang.activity.ts | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/src/apps/com.hanweb.android.zhejiang.activity.ts b/src/apps/com.hanweb.android.zhejiang.activity.ts index d569aea8..00e5c10a 100644 --- a/src/apps/com.hanweb.android.zhejiang.activity.ts +++ b/src/apps/com.hanweb.android.zhejiang.activity.ts @@ -17,12 +17,32 @@ export default defineAppConfig({ { key: 1, name: '更新弹窗', - actionMaximum: 1, resetMatch: 'app', quickFind: true, - rules: - '@[id="com.hanweb.android.zhejiang.activity:id/iv_cancel"] -2 * >2 [text="发现新版本"]', - snapshotUrls: 'https://i.gkd.li/import/13402048', + rules: [ + { + key: 0, + actionMaximum: 1, + matches: + '@[id="com.hanweb.android.zhejiang.activity:id/iv_cancel"] -2 * >2 [text="发现新版本"]', + snapshotUrls: 'https://i.gkd.li/import/13402048', + }, + // key 1,2 共同发挥作用,先点击[立即升级],然后返回,即可跳过更新弹窗 + { + key: 1, + actionMaximumKey: 0, + matches: + 'LinearLayout[childCount=2] > LinearLayout[childCount=2] > [text="立即升级"]', + snapshotUrls: 'https://i.gkd.li/import/13520598', + }, + { + preKeys: 1, + key: 2, + matches: + '[text="版本更新"] - [id="com.hanweb.android.zhejiang.activity:id/rl_back"]', + snapshotUrls: 'https://i.gkd.li/import/13521059', + }, + ], }, ], });