Files
AIsouler-GKD_subscription/src/apps/cmb.pb.ts
2024-12-07 19:02:09 +08:00

66 lines
1.8 KiB
TypeScript

import { defineGkdApp } from '@gkd-kit/define';
export default defineGkdApp({
id: 'cmb.pb',
name: '招商银行',
groups: [
{
key: 3,
name: '局部广告-首页活动悬浮广告',
fastQuery: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
activityIds: 'cmb.pb.app.mainframe.container.PBMainActivity',
matches: '[vid="float_window"] > [vid="ivCancle"][clickable=true]',
snapshotUrls: 'https://i.gkd.li/i/14208669',
},
],
},
{
key: 10,
name: '全屏广告-弹窗广告',
rules: [
{
key: 0,
activityIds:
'cmb.pb.app.h5container.webviewcontainer.PBWebContainerActivity',
matches: '[id="cover-img"] + [text="关闭推荐"]',
snapshotUrls: 'https://i.gkd.li/i/12706022',
},
{
key: 1,
fastQuery: true,
activityIds: 'com.pb.marketing.PopupWindowActivity',
matches: '[desc^="活动图片"] + [vid="ivCancle"][desc="关闭"]',
snapshotUrls: 'https://i.gkd.li/i/14208693',
},
],
},
{
key: 11,
name: '权限提示-定位权限',
fastQuery: true,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
activityIds: [
'.app.h5container.webviewcontainer.PBWebContainerActivity',
'.app.search.PBSearchWebActivity',
'com.pb.marketing.PopupWindowActivity',
],
matches: '@[desc="关闭"] - * > [text*="开启"][text*="定位"]',
snapshotUrls: [
'https://i.gkd.li/i/13248893',
'https://i.gkd.li/i/13897345',
'https://i.gkd.li/i/14208717',
],
},
],
},
],
});