From 9e88a7534ff79028d5afad2a002fff230d260b2c Mon Sep 17 00:00:00 2001 From: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Date: Tue, 24 Oct 2023 01:07:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(OMOFUN):=20=E8=A7=84=E5=88=99=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20(#1348)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(OMOFUN): 规则优化 * 格式更正 * chore(actions): check_format_lint --------- Co-authored-by: github-actions[bot] close #1345 --- src/apps/com.cyl.musiccy.ou.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/apps/com.cyl.musiccy.ou.ts b/src/apps/com.cyl.musiccy.ou.ts index 6fef6e73..6e27fc58 100644 --- a/src/apps/com.cyl.musiccy.ou.ts +++ b/src/apps/com.cyl.musiccy.ou.ts @@ -7,6 +7,7 @@ export default defineAppConfig({ { key: 0, name: '开屏广告', + matchLauncher: true, activityIds: ['com.cyl.musiccy.ou.MainActivity'], rules: [ { @@ -31,6 +32,11 @@ export default defineAppConfig({ matches: 'FrameLayout > LinearLayout > TextView[text^="跳过"]', snapshotUrls: 'https://gkd-kit.gitee.io/import/13063246', }, + { + matches: + '[id="com.cyl.musiccy.ou:id/ksad_splash_root_container"] [text="跳过"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/13071599', + }, ], }, { @@ -51,11 +57,11 @@ export default defineAppConfig({ { key: 2, name: '插屏广告', + matchLauncher: true, activityIds: [ 'com.cyl.musiccy.ou.MainActivity', 'com.sigmob.sdk.base.common.TransparentAdActivity', 'com.miui.wakepath.ui.ConfirmStartActivity', - 'com.miui.home.launcher.Launcher', ], rules: [ { @@ -95,8 +101,11 @@ export default defineAppConfig({ { action: 'clickCenter', matches: - 'TextView[text="立即下载"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout[childCount=1] > ImageView', - snapshotUrls: 'https://gkd-kit.gitee.io/import/12789928', + 'TextView[text="立即下载" || text="查看详情"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout[childCount=1] > ImageView', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12789928', + 'https://gkd-kit.gitee.io/import/13071595', + ], }, { action: 'click',