请教几个问题
#539
Replies: 1 comment 1 reply
-
有些应用需要点击2次,你想设置1次也行
rule.key
如果一个 rule 的 actionMaximum 不写或者为 null ,则取 group.actionMaximum,所有在 https://gkd.li/api/interfaces/RawCommonProps.html 的属性都是这样 它的作用是避免你每个规则都写一遍这个属性,因此上面的规则完全等价于 {
id: 'com.coolapk.market',
name: '酷安',
groups: [
{
key: 1,
name: '[ChangeMe]规则名称-2024-03-02 22:14:00',
desc: '[ChangeMe]本规则由GKD网页端审查工具生成',
rules: [
{
key: 0,
quickFind: true,
activityIds: 'com.coolapk.market.view.main.MainActivity',
matches: '@[clickable=true] > [text="值得看"]',
exampleUrls: 'https://m.gkd.li/57941037/ad9586db-c4d7-4d4b-92c5-67190b4eb05c',
snapshotUrls: 'https://i.gkd.li/i/14469644',
actionMaximum: 1,
resetMatch: 'app',
},
{
preKeys: 0,
key: 1,
activityIds: 'com.coolapk.market.view.base.SimpleAlphaActivity',
matches: '[desc="分享"]',
exampleUrls: 'https://m.gkd.li/57941037/9e6fa5de-24f6-47b1-9e22-e24e42a58628',
snapshotUrls: 'https://i.gkd.li/i/14469640',
actionMaximum: 1,
resetMatch: 'app',
},
{
preKeys: 1,
key: 2,
quickFind: true,
activityIds: 'com.coolapk.market.view.sharev8.ShareListActivity',
matches: '@[clickable=true] > [text="更多"]',
exampleUrls: 'https://m.gkd.li/57941037/f6eecb4b-dec7-496d-ac78-ab482ffaaa4a',
snapshotUrls: 'https://i.gkd.li/i/14469637',
actionMaximum: 1,
resetMatch: 'app',
}
],
},
],
} 其它的情况我不知道 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1、开屏广告全局规则的最大次数为什么是2次?
2、actionCdKey和actionMaximumKey指的是哪个key0?如果是rules内的key0,那么当key-1触发时是不是不会影响到这两个字段?
3、如果actionMaximum设置在与rules同级,那么rules下的所有规则共享这个次数还是每个规则享有独立的次数?我自己写了一个规则测试,actionMaximum设置为1,发现当没有设置prekeys的情况下只能触发一段,当设置了prekeys时有时只能触发一段,有时能触发二段但是不能触发三段,如果保留prekeys去掉resetMatch: 'app',则能够触发三段,越测越懵逼了,希望大佬解答,以下是具体规则和日志文件:
https://github.com/gkd-kit/inspect/files/14469788/file.zip
Beta Was this translation helpful? Give feedback.
All reactions