mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 17:25:11 +08:00
129 lines
3.5 KiB
TypeScript
129 lines
3.5 KiB
TypeScript
import { defineAppConfig } from '../types';
|
|
|
|
export default defineAppConfig({
|
|
id: 'com.unionpay',
|
|
name: '云闪付',
|
|
groups: [
|
|
{
|
|
key: 0,
|
|
name: '开屏广告',
|
|
matchTime: 10000,
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
quickFind: true,
|
|
rules: [
|
|
{
|
|
matches: '[id="com.unionpay:id/jump"][text^="跳过"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12705391',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 1,
|
|
name: '更新弹窗',
|
|
matchTime: 10000,
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
quickFind: true,
|
|
activityIds: ['com.unionpay.base.UPDialog'],
|
|
rules: [
|
|
{
|
|
matches: '@[text="稍候再说"] + [text="立即更新"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12727278',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 2,
|
|
name: '支付完成界面广告卡片',
|
|
quickFind: true,
|
|
activityIds: 'com.unionpay.activity.react.UPActivityReactNative',
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
matches: '[id="bannerBox"] > @View[clickable=true] > [text="广告"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13070564',
|
|
},
|
|
{
|
|
preKeys: 0,
|
|
key: 1,
|
|
matches: '[text="关闭广告"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13070974',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 9,
|
|
name: '右侧悬浮广告',
|
|
matchTime: 10000,
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
quickFind: true,
|
|
activityIds: ['com.unionpay.activity.UPActivityMain'],
|
|
rules: [
|
|
{
|
|
matches:
|
|
'[id="com.unionpay:id/frog_float"] >2 [id="com.unionpay:id/close_view"][visibleToUser=true]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12695699',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 10,
|
|
name: '定位权限悬浮弹窗',
|
|
matchTime: 10000,
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
quickFind: true,
|
|
activityIds: 'com.unionpay.activity.UPActivityMain',
|
|
rules: '[id="com.unionpay:id/view_locate_close"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13634882',
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 11,
|
|
name: '访问位置请求弹窗',
|
|
desc: '自动点击【不允许】。默认关闭,请手动开启',
|
|
quickFind: true,
|
|
activityIds: ['com.unionpay.base.UPDialog'],
|
|
rules: [
|
|
{
|
|
matches:
|
|
'[text$="想访问您的位置信息"] < * +2 LinearLayout > [id="com.unionpay:id/btn_cancel"][visibleToUser=true]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12695773',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 12,
|
|
name: '开启消息通知弹窗',
|
|
desc: '默认关闭,请手动开启',
|
|
quickFind: true,
|
|
activityIds: ['com.unionpay.base.UPDialog'],
|
|
rules: [
|
|
{
|
|
matches:
|
|
'[text="开启消息通知"] < * + [id="com.unionpay:id/view_alert_cancel"][visibleToUser=true]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12695736',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 13,
|
|
name: '天天签到-获得新勋章提示',
|
|
desc: '点击左上角返回',
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
quickFind: true,
|
|
rules: [
|
|
{
|
|
activityIds: 'com.unionpay.cordova.UPActivityCordovaWeb',
|
|
matches: '[id="com.unionpay:id/iv_title_left_image"][desc="返回"]', //实测原规则点击中间下方【x】无效
|
|
snapshotUrls: 'https://i.gkd.li/import/13440341',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|