feat(驾校一点通): 开屏广告(优化规则)、弹窗广告 (#2588)

* feat 开屏广告(优化规则)

* feat 弹窗广告
This commit is contained in:
Kun Jinkao
2023-11-28 20:01:07 +08:00
committed by GitHub
parent 3772f17ff6
commit 9af88c93c0

View File

@@ -6,19 +6,18 @@ export default defineAppConfig({
groups: [ groups: [
{ {
key: 1, key: 1,
name: '首页广告', name: '开屏广告',
activityIds: ['com.jxedt.ui.activitys.GuideActivity'], quickFind: true,
rules: [ matchTime: 10000,
{ actionMaximum: 1,
matches: '[id="com.jxedt:id/tv_guide_tiaoguo" || text*="跳过"]', resetMatch: 'app',
rules: '[text^="跳过"][text.length<=10]',
snapshotUrls: [ snapshotUrls: [
'https://i.gkd.li/import/12605051', 'https://i.gkd.li/import/12605051',
'https://i.gkd.li/import/12605053', 'https://i.gkd.li/import/12605053',
'https://i.gkd.li/import/12605057', 'https://i.gkd.li/import/12605057',
], ],
}, },
],
},
{ {
key: 2, key: 2,
name: '广告卡片', name: '广告卡片',
@@ -26,5 +25,18 @@ export default defineAppConfig({
rules: '[id="com.jxedt:id/img_question_banner_close"]', rules: '[id="com.jxedt:id/img_question_banner_close"]',
snapshotUrls: 'https://i.gkd.li/import/13195641', snapshotUrls: 'https://i.gkd.li/import/13195641',
}, },
{
key: 3,
name: '弹窗广告',
rules: [
{
key: 0,
activityIds: 'com.jxedt.ui.activitys.NewHomeActivity',
quickFind: true,
matches: '[id="com.jxedt:id/img_dialog_ad_close"]',
snapshotUrls: 'https://i.gkd.li/import/13476741',
},
],
},
], ],
}); });