From 23d776be63b404c6be3de7f1ab9dc7f783a01b49 Mon Sep 17 00:00:00 2001 From: AIsouler Date: Thu, 26 Jun 2025 15:39:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8C=E7=A8=8B=E6=97=85=E8=A1=8C-?= =?UTF-8?q?=E5=85=A8=E5=B1=8F=E5=B9=BF=E5=91=8A=E3=80=81=E8=AF=84=E4=BB=B7?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=20#1015?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/appDeprecatedKeys.ts | 5 ++++ src/apps/com.tongcheng.android.ts | 39 +++++++++++++++++++++---------- 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/src/appDeprecatedKeys.ts b/src/appDeprecatedKeys.ts index f70465c2..d2270028 100644 --- a/src/appDeprecatedKeys.ts +++ b/src/appDeprecatedKeys.ts @@ -847,6 +847,11 @@ const appDeprecatedKeys: RawDeprecatedKeysSetting[] = [ name: 'QQ音乐', deprecatedKeys: [10], }, + { + id: 'com.tongcheng.android', + name: '同程旅行', + deprecatedKeys: [1], + }, ]; const map: Map = new Map(); diff --git a/src/apps/com.tongcheng.android.ts b/src/apps/com.tongcheng.android.ts index 4b30391d..a4ee435f 100644 --- a/src/apps/com.tongcheng.android.ts +++ b/src/apps/com.tongcheng.android.ts @@ -5,22 +5,37 @@ export default defineGkdApp({ name: '同程旅行', groups: [ { - key: 1, - name: '分段广告-卡片广告', - activityIds: 'com.tongcheng.android.TongchengMainActivity', + key: 2, + name: '全屏广告-弹窗广告', + desc: '点击关闭', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', rules: [ { - key: 0, - matches: - 'ViewGroup[childCount=2] > ImageView + ViewGroup[childCount=1] > ImageView', - snapshotUrls: 'https://i.gkd.li/i/13167070', + fastQuery: true, + activityIds: '.TongchengMainActivity', + matches: '[vid="iv_home_ad_close"][visibleToUser=true]', + exampleUrls: 'https://e.gkd.li/25369e74-1527-4ca5-9f39-77930ee84d1e', + snapshotUrls: 'https://i.gkd.li/i/20921290', }, + ], + }, + { + key: 3, + name: '评价提示', + matchTime: 10000, + actionMaximum: 1, + rules: [ { - preKeys: [0], - key: 1, - matches: - '@* > * > [id="com.tongcheng.android:id/tv_home_banner_pop_up"][text="关闭"]', - snapshotUrls: 'https://i.gkd.li/i/13167149', + fastQuery: true, + activityIds: '.TongchengMainActivity', + matches: [ + '[text="给个好评鼓励下吧"][visibleToUser=true]', + '[vid="iv_close"][visibleToUser=true]', + ], + exampleUrls: 'https://e.gkd.li/60949e51-3d07-4eda-ab2d-9ff561d8b58c', + snapshotUrls: 'https://i.gkd.li/i/20921292', }, ], },