mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 09:15:11 +08:00
130 lines
4.4 KiB
TypeScript
130 lines
4.4 KiB
TypeScript
import { defineAppConfig } from '../types';
|
|
|
|
export default defineAppConfig({
|
|
id: 'com.eg.android.AlipayGphone',
|
|
name: '支付宝',
|
|
groups: [
|
|
{
|
|
enable: false,
|
|
key: 0,
|
|
name: '关闭花呗升级弹窗',
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
activityIds: [
|
|
'com.alipay.mobile.nebulax.integration.mpaas.activity.NebulaActivity$Main',
|
|
'com.alipay.android.msp.ui.views', //views.MspContainerActivity & views.MspUniRenderActivity
|
|
'com.alipay.android.msp.ui.views.MspContainerActivity',
|
|
],
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
matches: 'View[childCount=3] > @Image - View[text="花呗服务升级"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12737055', //com.alipay.mobile.nebulax.integration.mpaas.activity.NebulaActivity$Main
|
|
},
|
|
{
|
|
quickFind: true,
|
|
matches: [
|
|
'[text="根据相关法律法规要求,请尽快完成花呗升级"]',
|
|
'FrameLayout > FrameLayout > FrameLayout > [text="关闭"]',
|
|
],
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/13183946', //com.alipay.android.msp.ui.views.MspContainerActivity
|
|
'https://i.gkd.li/import/12826077', //com.alipay.android.msp.ui.views.MspUniRenderActivity
|
|
'https://i.gkd.li/import/12915864', //matchLauncher
|
|
],
|
|
},
|
|
{
|
|
quickFind: true,
|
|
matches:
|
|
'[text="花呗服务未升级,将影响后续使用"] <<n FrameLayout @FrameLayout[clickable=true] [text="暂不升级,继续付款"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13631362',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 1,
|
|
name: '关闭开启定位提示',
|
|
quickFind: true,
|
|
activityIds: 'com.eg.android.AlipayGphone.AlipayLogin',
|
|
rules:
|
|
'@[id="com.alipay.mobile.antui:id/closeButton"] - [id="com.alipay.mobile.antui:id/textAndButtonLayout"] [id="com.alipay.mobile.antui:id/tipTextView"][text^="开启定位权限"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12792688',
|
|
},
|
|
{
|
|
key: 2,
|
|
name: '请求通知权限提示',
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
quickFind: true,
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
name: '首页底部提示',
|
|
activityIds: 'com.eg.android.AlipayGphone.AlipayLogin',
|
|
matches:
|
|
'@[desc="关闭"] - * >n [id="com.alipay.mobile.antui:id/tipTextView"][text^="开启通知权限"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13194955',
|
|
},
|
|
{
|
|
key: 1,
|
|
name: '消息页弹窗提示',
|
|
activityIds:
|
|
'com.alipay.mobile.rome.pushservice.integration.PushOpenGuideActivity',
|
|
matches:
|
|
'[text="选择通知接收范围"] <2 RelativeLayout [text="暂时不用"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13669620',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 3,
|
|
name: '版本更新',
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
quickFind: true,
|
|
activityIds: [
|
|
'com.alipay.mobile.alipassapp.alkb.kb.ALPMainPage63',
|
|
'com.eg.android.AlipayGphone.AlipayLogin',
|
|
],
|
|
rules: [
|
|
{
|
|
name: '弹窗-【稍后再说】',
|
|
matches:
|
|
'TextView[id="com.alipay.mobile.accountauthbiz:id/update_cancel_tv"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13327095',
|
|
},
|
|
{
|
|
name: '弹窗-【x】',
|
|
matches:
|
|
'[text="版本更新"] - [id="com.alipay.mobile.antui:id/btn_close"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13490805',
|
|
},
|
|
{
|
|
name: '卡片-【x】',
|
|
matches:
|
|
'[text="立即升级最新版支付宝客户端"] < LinearLayout + [id="com.alipay.mobile.advertisement:id/announcementview_righticon"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13490797',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 4,
|
|
name: '设置支付宝小组件',
|
|
desc: '点击关闭',
|
|
quickFind: true,
|
|
activityIds: 'com.alipay.android.msp.ui.views.MspContainerActivity',
|
|
rules: [
|
|
{
|
|
matches:
|
|
'@TextView[text="关闭"] < * <3 * < * + * >3 TextView[text="设置支付宝小组件"]',
|
|
action: 'clickCenter',
|
|
snapshotUrls: 'https://i.gkd.li/import/13327349',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|