From ff587e268d9851e8d49f48cfd8768ceac3d3a1a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A9=E6=96=B9=E5=A4=9C=E8=B0=AD?= <152615144+tianfangyetan1@users.noreply.github.com> Date: Tue, 4 Nov 2025 00:28:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20PU=E5=8F=A3=E8=A2=8B=E6=A0=A1=E5=9B=AD-?= =?UTF-8?q?=E5=85=A8=E5=B1=8F=E5=B9=BF=E5=91=8A=20=E7=AD=892=E4=B8=AA?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=20(#1383)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: AIsouler --- src/apps/com.xyhui.ts | 68 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 63 insertions(+), 5 deletions(-) diff --git a/src/apps/com.xyhui.ts b/src/apps/com.xyhui.ts index d3fb1f18..74ae81de 100644 --- a/src/apps/com.xyhui.ts +++ b/src/apps/com.xyhui.ts @@ -17,7 +17,7 @@ export default defineGkdApp({ 'com.xyhui.start.LoadingActivity', ], matches: - '@ImageView[childCount=0][text=null][desc=null][id=null][visibleToUser=true][width<90 && height<90] < FrameLayout[childCount=1][text=null][desc=null][id=null] <2 FrameLayout[childCount=5] + FrameLayout[childCount=2] > [text^="立即" || text="查看详情" || text="了解更多" || text="去逛逛" || text="去微信看看" || text$="应用" || text="进入小程序" || text="领取优惠" || text="跳转微信"]', + '@ImageView[childCount=0][text=null][desc=null][id=null][visibleToUser=true][width<90 && height<90] < FrameLayout[childCount=1][text=null][desc=null][id=null] <2 FrameLayout[childCount=5] + FrameLayout[childCount=2] > [text^="立即" || text$="详情" || text^="了解" || text="去逛逛" || text="去微信看看" || text$="应用" || text="进入小程序" || text="领取优惠" || text="跳转微信"]', snapshotUrls: [ 'https://i.gkd.li/i/14472097', 'https://i.gkd.li/i/13695488', @@ -73,11 +73,12 @@ export default defineGkdApp({ '.lut.act.LutMainActivity', ], matches: - '@ImageView[childCount=0][text=null][desc=null][id=null][visibleToUser=true][width<90 && height<90] < FrameLayout[childCount=1][text=null][desc=null][id=null][parent.childCount>3] +n FrameLayout >(1,2) [text^="立即" || text="查看详情" || text="了解更多" || text="去微信看看" || text$="应用" || text="进入小程序" || text="领取优惠" || text="跳转微信"]', + '@ImageView[childCount=0][text=null][desc=null][id=null][visibleToUser=true][width<90 && height<90] < FrameLayout[childCount=1][text=null][desc=null][id=null][parent.childCount>3] +n FrameLayout >(1,2) [text^="立即" || text$="详情" || text^="了解" || text="去微信看看" || text$="应用" || text="进入小程序" || text="领取优惠" || text="跳转微信"]', snapshotUrls: [ 'https://i.gkd.li/i/14472098', 'https://i.gkd.li/i/14766902', 'https://i.gkd.li/i/23146070', + 'https://i.gkd.li/i/23304106', ], }, { @@ -100,9 +101,16 @@ export default defineGkdApp({ { key: 9, fastQuery: true, - activityIds: 'com.anythink.basead.ui.ATPortraitTranslucentActivity', - matches: '[vid="anythink_myoffer_btn_close_id"]', - snapshotUrls: 'https://i.gkd.li/i/22868736', + activityIds: [ + 'com.anythink.basead.ui.ATPortraitTranslucentActivity', + 'com.smartdigimkt.sdk.basead.ui.ATPortraitTranslucentActivity', + ], + matches: + '[vid="anythink_myoffer_btn_close_id" || vid="sdm_myoffer_btn_close_id"]', + snapshotUrls: [ + 'https://i.gkd.li/i/22868736', + 'https://i.gkd.li/i/23293759', + ], }, { key: 10, @@ -153,5 +161,55 @@ export default defineGkdApp({ }, ], }, + { + key: 6, + name: '功能类-打开应用自动进入部落', + desc: '点击我的-我的部落-已通过-部落详情(如果有多个则点击第一个,仅开屏时触发一次)', + rules: [ + // 部分规则不使用 preKeys,因为中途可能会有广告打断 + { + key: 0, + name: '点击导航栏[我的]', + fastQuery: true, + actionMaximum: 1, + resetMatch: 'app', + activityIds: '.lut.act.LutMainActivity', + matches: + '@ViewGroup[clickable=true][visibleToUser=true] > [text="我的"] < [text="我的部落"]', + snapshotUrls: 'https://i.gkd.li/i/23303537', + }, + { + key: 2, + name: '点击[已通过]', + fastQuery: true, + actionMaximum: 1, + resetMatch: 'app', + activityIds: 'com.lut.tribe.act.MyLutTribeAct', + matches: + '@RelativeLayout[clickable=true][visibleToUser=true] > [text="已通过"]', + snapshotUrls: 'https://i.gkd.li/i/23303538', + }, + { + preKeys: [2], + name: '进入部落详情', + fastQuery: true, + activityIds: 'com.lut.tribe.act.MyLutTribeAct', + matches: + '@LinearLayout[clickable=true][visibleToUser=true] < [vid="mRecyclerView"]', + snapshotUrls: 'https://i.gkd.li/i/23303539', + }, + ], + }, ], });