diff --git a/src/apps/com.xunlei.downloadprovider.ts b/src/apps/com.xunlei.downloadprovider.ts index 0a62d1d1..b95eb11c 100644 --- a/src/apps/com.xunlei.downloadprovider.ts +++ b/src/apps/com.xunlei.downloadprovider.ts @@ -72,11 +72,12 @@ export default defineAppConfig({ key: 0, activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity', matchLauncher: true, - matches: '@[text="关闭"] +n * > [text*="广告"]', + matches: '@[text="关闭"] +n * >n [text*="广告"]', snapshotUrls: [ 'https://gkd-kit.songe.li/import/12868648', 'https://gkd-kit.gitee.io/import/12879372', 'https://gkd-kit.songe.li/import/12882366', + 'https://gkd-kit.songe.li/import/12892871', ], }, @@ -121,10 +122,11 @@ export default defineAppConfig({ activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity', matchLauncher: true, matches: - '@ImageView[visibleToUser=true] < ViewGroup < ViewGroup +n ViewGroup > [text="广告"]', + 'ImageView < @ViewGroup[visibleToUser=true] < ViewGroup +n ViewGroup > [text="广告"]', snapshotUrls: [ 'https://gkd-kit.songe.li/import/12882199', // n = 1 'https://gkd-kit.songe.li/import/12881911', // n = 2 + 'https://gkd-kit.songe.li/import/12892912', // 点击目标为具备 clickable=true 的 ViewGroup,防止在这个快照中点击到下落的礼物 'https://gkd-kit.songe.li/import/12881976', // 限定 visibleToUser=true,防止在这个快照中误触 ], }, @@ -155,8 +157,14 @@ export default defineAppConfig({ snapshotUrls: 'https://gkd-kit.songe.li/import/12881865', }, { - preKeys: [0], key: 1, + activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity', + matches: '[id="com.xunlei.downloadprovider:id/btn_ad_feedback"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/12892893', + }, + { + preKeys: [0, 1], + key: 2, activityIds: 'com.xunlei.downloadprovider.download.center.newcenter', matches: '[id="com.xunlei.downloadprovider:id/close_ad"]', snapshotUrls: 'https://gkd-kit.songe.li/import/128818775',