Skip to content

Commit aad4320

Browse files
committed
refactor: 网易云游戏-局部广告-卡片广告
- 采用广告商来分类 - 局部广告 => 局部广告-卡片广告
1 parent 95f977a commit aad4320

File tree

1 file changed

+28
-24
lines changed

1 file changed

+28
-24
lines changed

src/apps/com.netease.android.cloudgame.ts

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,50 +19,54 @@ export default defineGkdApp({
1919
},
2020
{
2121
key: 2,
22-
name: '局部广告',
22+
name: '局部广告-卡片广告',
2323
fastQuery: true,
2424
activityIds: '.activity.MainActivity',
2525
rules: [
2626
{
2727
key: 0,
28-
name: '底部横幅广告',
29-
matches:
30-
'ViewGroup[childCount=2] > [vid="banner_content"] + [vid="close_btn"][clickable=true][visibleToUser=false]',
31-
snapshotUrls: 'https://i.gkd.li/i/25573674',
32-
exampleUrls: 'https://e.gkd.li/bfe2d2a2-2199-425c-9729-9176aa4fb5bf',
33-
},
34-
{
35-
key: 1,
36-
name: '福利页广告',
28+
name: '腾讯sdk',
3729
anyMatches: [
38-
'@ImageView[clickable=true][visibleToUser=true] -2 ImageView < RelativeLayout[childCount=3] <<n [vid="sign_ad_card"]',
39-
'ImageView < * -2 * >n @ImageView[visibleToUser=true] < * -2 * < FrameLayout[childCount=3] <<n [vid="sign_ad_card"]',
30+
'@ImageView[clickable=true] - * < RelativeLayout +n [text="精选推荐"][visibleToUser=true]',
31+
'@ImageView[index=parent.childCount.minus(1)] < FrameLayout <3 FrameLayout +2 FrameLayout > LinearLayout > [text="立即下载"][visibleToUser=true]',
4032
],
4133
snapshotUrls: [
42-
'https://i.gkd.li/i/25574104',
43-
'https://i.gkd.li/i/25619258',
34+
'https://i.gkd.li/i/25620233',
35+
'https://i.gkd.li/i/26313264',
36+
'https://i.gkd.li/i/25619258', // 形式2
4437
],
4538
exampleUrls: [
46-
'https://e.gkd.li/91afc489-ac6e-452c-9b75-d15336e11989',
47-
'https://e.gkd.li/217312d8-5dd5-48c3-a6c2-448608674957',
39+
'https://e.gkd.li/b1194340-db45-4ece-85a5-04447b12a2e9',
40+
'https://e.gkd.li/d1a76240-5873-4e59-b856-9c59f395e46f',
41+
'https://e.gkd.li/217312d8-5dd5-48c3-a6c2-448608674957', // 形式2
4842
],
4943
},
5044
{
51-
key: 2,
52-
name: '个人页广告',
45+
key: 1,
46+
name: '百度sdk',
5347
anyMatches: [
54-
'ImageView -3 @ImageView[clickable=true][visibleToUser=true] - * < RelativeLayout[childCount=5] <<n [vid="mine_ui_ad_layout"]',
55-
'@ImageView[clickable=true][visibleToUser=true] -n RelativeLayout > [text*="广告"]',
48+
'@ImageView[clickable=true] + RelativeLayout > * > [text="精选推荐"][visibleToUser=true]',
49+
'@ImageView[clickable=true] - [text="查看详情"] -n RelativeLayout > [text$="广告"][visibleToUser=true]',
5650
],
5751
snapshotUrls: [
58-
'https://i.gkd.li/i/25573743',
59-
'https://i.gkd.li/i/25620233',
52+
'https://i.gkd.li/i/26312930',
53+
'https://i.gkd.li/i/26313348',
54+
'https://i.gkd.li/i/25573743', // 形式2
6055
],
6156
exampleUrls: [
62-
'https://e.gkd.li/217312d8-5dd5-48c3-a6c2-448608674957',
63-
'https://e.gkd.li/b1194340-db45-4ece-85a5-04447b12a2e9',
57+
'https://e.gkd.li/3e89a49d-3c93-4b6d-8071-85ab6e75f761',
58+
'https://e.gkd.li/04b09c16-20d5-41fe-bc72-72649fc06af7',
59+
'https://e.gkd.li/217312d8-5dd5-48c3-a6c2-448608674957', // 形式2
6460
],
6561
},
62+
{
63+
key: 2,
64+
name: '穿山甲sdk',
65+
matches:
66+
'@ImageView[index=parent.childCount.minus(1)] <n RelativeLayout -2 RelativeLayout <<6 [vid="sign_ad_layout"]',
67+
snapshotUrls: 'https://i.gkd.li/i/25574104',
68+
exampleUrls: 'https://e.gkd.li/91afc489-ac6e-452c-9b75-d15336e11989',
69+
},
6670
],
6771
},
6872
{

0 commit comments

Comments
 (0)