feat: 中国电信-英文版未登录时自动一键登录 (#1233)

This commit is contained in:
天方夜谭
2025-10-10 19:41:34 +08:00
committed by GitHub
parent 79ca6b04b6
commit 2a216a9a61

View File

@@ -151,5 +151,46 @@ export default defineGkdApp({
},
],
},
{
key: 8,
name: '功能类-英文版未登录时自动一键登录',
desc: '仅在使用该卡移动数据时可用',
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
// 点击“Login”
key: 0,
fastQuery: true,
activityIds: '.international.homepage.InternationalHomePageActivity',
matches: '[text="Login"]',
snapshotUrls: [
'https://i.gkd.li/i/22843837', // 登录前
'https://i.gkd.li/i/22846926', // 登录后
],
},
{
// 勾选同意用户协议
key: 1,
preKeys: [0],
fastQuery: true,
activityIds: '.international.login.InternationalLoginActivity',
matches:
'@CheckBox[checked=false] + [text^="I agree that I have read and accepted"]',
snapshotUrls: [
'https://i.gkd.li/i/22843889', // 勾选前
'https://i.gkd.li/i/22843896', // 勾选后
],
},
{
// 点击一键登录
preKeys: [1],
fastQuery: true,
activityIds: '.international.login.InternationalLoginActivity',
matches: '[text="Login with Current Number"]',
snapshotUrls: 'https://i.gkd.li/i/22843896',
},
],
},
],
});