mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-22 01:35:32 +08:00
fix(奇妙应用) 局部广告-卡片式广告(修复误触) (#46)
This commit is contained in:
@@ -3,6 +3,7 @@ import { defineAppConfig } from '../types';
|
|||||||
export default defineAppConfig({
|
export default defineAppConfig({
|
||||||
id: 'com.magicalstory.AppStore',
|
id: 'com.magicalstory.AppStore',
|
||||||
name: '奇妙应用',
|
name: '奇妙应用',
|
||||||
|
deprecatedKeys: [6],
|
||||||
groups: [
|
groups: [
|
||||||
{
|
{
|
||||||
key: 1,
|
key: 1,
|
||||||
@@ -12,24 +13,34 @@ export default defineAppConfig({
|
|||||||
key: 0,
|
key: 0,
|
||||||
name: '腾讯广告',
|
name: '腾讯广告',
|
||||||
activityIds: [
|
activityIds: [
|
||||||
'com.magicalstory.AppStore.search.searchActivity',
|
|
||||||
'com.magicalstory.AppStore.appDetails.AppDetailsActivity',
|
'com.magicalstory.AppStore.appDetails.AppDetailsActivity',
|
||||||
'com.magicalstory.AppStore.main.fragments.square.section.forumDetailsActivity',
|
'com.magicalstory.AppStore.main.fragments.square.section.forumDetailsActivity',
|
||||||
],
|
],
|
||||||
matches: [
|
excludeActivityIds: 'com.magicalstory.AppStore.search.searchActivity', // 排除搜索页,搜索页的规则见 key: 1
|
||||||
'[id^="com.magicalstory.AppStore:id/banner"]',
|
matches:
|
||||||
'FrameLayout[childCount=5] > FrameLayout[childCount=1] > ImageView[visibleToUser=true]',
|
'[visibleToUser=true] - [vid^="banner"] >n FrameLayout[childCount=5] > FrameLayout[childCount=1] > @ImageView[visibleToUser=true] < FrameLayout +2 *[visibleToUser=true]',
|
||||||
],
|
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/import/13185746',
|
|
||||||
'https://i.gkd.li/import/13413482',
|
'https://i.gkd.li/import/13413482',
|
||||||
'https://i.gkd.li/import/13416979',
|
'https://i.gkd.li/import/13416979',
|
||||||
'https://i.gkd.li/import/13527698',
|
'https://i.gkd.li/import/13527698',
|
||||||
'https://i.gkd.li/import/13759492', // 限定 visibleToUser, 防止误触
|
'https://i.gkd.li/import/13759492', // 限定 visibleToUser, 防止误触
|
||||||
|
'https://i.gkd.li/import/14273176', // 限定 visibleToUser, 防止误触
|
||||||
|
'https://i.gkd.li/import/14273317', // 限定 visibleToUser, 防止误触
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 1,
|
key: 1,
|
||||||
|
name: '腾讯广告-搜索页面',
|
||||||
|
activityIds: 'com.magicalstory.AppStore.search.searchActivity',
|
||||||
|
matches:
|
||||||
|
'FrameLayout[childCount=5] > FrameLayout[childCount=1] > @ImageView < FrameLayout +2 *[visibleToUser=true]',
|
||||||
|
snapshotUrls: [
|
||||||
|
'https://i.gkd.li/import/13185746',
|
||||||
|
'https://i.gkd.li/import/13695554',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 2,
|
||||||
quickFind: true,
|
quickFind: true,
|
||||||
activityIds: 'com.magicalstory.AppStore.main.MainActivity',
|
activityIds: 'com.magicalstory.AppStore.main.MainActivity',
|
||||||
matches: '[id="com.magicalstory.AppStore:id/button_close_ad"]',
|
matches: '[id="com.magicalstory.AppStore:id/button_close_ad"]',
|
||||||
@@ -64,15 +75,5 @@ export default defineAppConfig({
|
|||||||
'[id="com.magicalstory.AppStore:id/tv_update"] <2 * + * > [id="com.magicalstory.AppStore:id/iv_close"]',
|
'[id="com.magicalstory.AppStore:id/tv_update"] <2 * + * > [id="com.magicalstory.AppStore:id/iv_close"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/13459373',
|
snapshotUrls: 'https://i.gkd.li/import/13459373',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: 6,
|
|
||||||
name: '局部广告-搜索页卡片广告',
|
|
||||||
desc: '腾讯广告',
|
|
||||||
actionMaximum: 1,
|
|
||||||
activityIds: 'com.magicalstory.AppStore.search.searchActivity',
|
|
||||||
rules:
|
|
||||||
'FrameLayout[childCount>1] > FrameLayout[childCount=1] > ImageView[width<80][height<80]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/13695554',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user