From 08daacebbd9b42a752a725dcb28c1c91e1da2e1f Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sun, 24 Sep 2023 00:36:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BA=91=E9=97=AA=E4=BB=98):=20=E5=BC=80?= =?UTF-8?q?=E5=B1=8F=E5=B9=BF=E5=91=8A=20(#303)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 二刺螈 --- src/apps/com.unionpay.ts | 55 ++++++++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/src/apps/com.unionpay.ts b/src/apps/com.unionpay.ts index d49d0fcf..f21dd448 100644 --- a/src/apps/com.unionpay.ts +++ b/src/apps/com.unionpay.ts @@ -5,33 +5,18 @@ export default defineAppConfig({ name: '云闪付', groups: [ { - key: 1, - name: '定位权限悬浮弹窗', + key: 0, + name: '开屏广告', activityIds: ['com.unionpay.activity.UPActivityMain'], rules: [ { - matches: - '[id="com.unionpay:id/locate_guide_view"] >2 [id="com.unionpay:id/locate_iv_close"][visibleToUser=true]', - snapshotUrls: 'https://gkd-kit.gitee.io/import/12694508', + matches: '[id="com.unionpay:id/jump"][text^="跳过"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705391', }, ], }, { - key: 2, - name: '访问位置请求弹窗', - enable: false, - desc: '自动点击【不允许】。默认关闭,请手动开启', - activityIds: ['com.unionpay.base.UPDialog'], - rules: [ - { - matches: - '[text$="想访问您的位置信息"] < * +2 LinearLayout > [id="com.unionpay:id/btn_cancel"][visibleToUser=true]', - snapshotUrls: 'https://gkd-kit.gitee.io/import/12695773', - }, - ], - }, - { - key: 3, + key: 9, name: '右侧悬浮广告', activityIds: ['com.unionpay.activity.UPActivityMain'], rules: [ @@ -43,9 +28,35 @@ export default defineAppConfig({ ], }, { - key: 4, - name: '开启消息通知弹窗', + key: 10, + name: '定位权限悬浮弹窗', + activityIds: ['com.unionpay.activity.UPActivityMain'], + rules: [ + { + matches: + '[id="com.unionpay:id/locate_guide_view"] >2 [id="com.unionpay:id/locate_iv_close"][visibleToUser=true]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12694508', + }, + ], + }, + { enable: false, + key: 11, + name: '访问位置请求弹窗', + desc: '自动点击【不允许】。默认关闭,请手动开启', + activityIds: ['com.unionpay.base.UPDialog'], + rules: [ + { + matches: + '[text$="想访问您的位置信息"] < * +2 LinearLayout > [id="com.unionpay:id/btn_cancel"][visibleToUser=true]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12695773', + }, + ], + }, + { + enable: false, + key: 12, + name: '开启消息通知弹窗', desc: '默认关闭,请手动开启', activityIds: ['com.unionpay.base.UPDialog'], rules: [