Skip to content

Commit f3f3f2f

Browse files
perf: 云·原神
1 parent 497ce9f commit f3f3f2f

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

src/apps/com.miHoYo.cloudgames.ys.ts

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,26 @@ export default defineGkdApp({
66
groups: [
77
{
88
key: 0,
9-
name: '开屏广告-自动下载版本更新',
10-
desc: '强制更新否则不让玩(本质和开屏广告性质一样)',
11-
matchTime: 16000,
12-
actionMaximum: 2,
13-
resetMatch: 'app',
9+
name: '功能类-自动点击[下载版本更新]',
1410
fastQuery: true,
1511
activityIds: 'com.mihoyo.cloudgame.main.MiHoYoCloudMainActivity',
1612
rules: [
1713
{
1814
key: 0,
1915
name: '点击[立即更新]',
20-
matches:
21-
'[vid="mUpgradeTitle"][visibleToUser=true] +3 LinearLayout > [vid="mUpgradeDialogOK"][clickable=true]',
16+
matchTime: 10000,
17+
actionMaximum: 1,
18+
resetMatch: 'app',
19+
matches: '[text="立即更新"][clickable=true]',
2220
snapshotUrls: 'https://i.gkd.li/i/26310355',
2321
exampleUrls: 'https://e.gkd.li/c061f2fd-ed19-4ae2-84c9-ae1bbc37ace1',
2422
},
2523
{
2624
preKeys: [0],
25+
actionMaximum: 1,
26+
resetMatch: 'app',
2727
name: '点击[开始安装]',
28-
matches:
29-
'ViewGroup[childCount=3] > [vid="mDescription"][visibleToUser=true] + [vid="mBtnConfirm"][clickable=true]',
28+
matches: '[text="开始安装"][clickable=true]',
3029
snapshotUrls: 'https://i.gkd.li/i/26310561',
3130
exampleUrls: 'https://e.gkd.li/c5f4db25-e1e5-492e-874d-c4e96eea5e99',
3231
},
@@ -39,10 +38,10 @@ export default defineGkdApp({
3938
{
4039
fastQuery: true,
4140
activityIds: 'com.mihoyo.cloudgame.main.MiHoYoCloudMainActivity',
42-
matches: '[text="使用流量进行游戏"]',
41+
matches: '[text="使用流量进行游戏"][clickable=true]',
42+
snapshotUrls: 'https://i.gkd.li/i/14783168',
4343
exampleUrls:
4444
'https://m.gkd.li/57941037/84c18536-b3a4-4f6e-99b2-264c1a36beb5',
45-
snapshotUrls: 'https://i.gkd.li/i/14783168',
4645
},
4746
],
4847
},
@@ -54,8 +53,7 @@ export default defineGkdApp({
5453
{
5554
fastQuery: true,
5655
activityIds: 'com.mihoyo.gamecloud.playcenter.main.MainActivity',
57-
matches:
58-
'[vid="rootLayout"] > [vid="btnList"] > [vid="confirmTv"][clickable=true][visibleToUser=true]',
56+
matches: '[text="尝试重连"][clickable=true]',
5957
snapshotUrls: 'https://i.gkd.li/i/26311100',
6058
exampleUrls: 'https://e.gkd.li/649824e2-e15e-4ddd-849a-b093357e3a7f',
6159
},

0 commit comments

Comments
 (0)