fix(小红书): 更新弹窗 (#3466)

* fix(小红书): 更新弹窗

两个快照text不同,但id相同,故使用id作为规则

* Update com.xingin.xhs.ts

* chore(actions): check_format_lint

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
xiaowonet 2024-01-04 20:59:12 +08:00 committed by GitHub
parent 222cc593ba
commit 16b3cccf6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,10 +40,20 @@ export default defineAppConfig({
actionMaximum: 1,
matchTime: 30000,
resetMatch: 'app',
activityIds: 'com.xingin.xhs.index.v2.IndexActivityV2',
rules:
'@ImageView[clickable=true] <2 FrameLayout < LinearLayout >2 [text="立即安装"]',
snapshotUrls: 'https://i.gkd.li/import/13246890',
rules: [
{
key: 0,
matches:
'@ImageView[clickable=true] <2 FrameLayout +3 FrameLayout > Button[text="立即安装"]',
snapshotUrls: 'https://i.gkd.li/import/13246890',
},
{
actionMaximumKey: 0,
matches:
'@ImageView[clickable=true] <2 FrameLayout +3 FrameLayout > Button[text="立即参与内测"]',
snapshotUrls: 'https://i.gkd.li/import/13741680',
},
],
},
{
enable: false,