From 6ae7d16d3ed14a048c5e148ad4cbe2f043181dc0 Mon Sep 17 00:00:00 2001 From: dlh <22029832+dlh996@users.noreply.github.com> Date: Mon, 18 Sep 2023 17:59:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=8C=E5=8C=BB=E8=AF=BE=E5=A0=82):=20?= =?UTF-8?q?=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A,=20=E9=80=80=E5=87=BA?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E5=BC=B9=E7=AA=97=20(#145)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(掌医课堂): 开屏广告 * fix(掌医课堂): 开屏广告 * feat(掌医课堂): 退出确认弹窗 * fix(掌医课堂): 修改为确认按钮修改为以ID查找,增加准确性。 --------- Co-authored-by: dlh --- src/apps/com.zgnet.eClass.ts | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/apps/com.zgnet.eClass.ts diff --git a/src/apps/com.zgnet.eClass.ts b/src/apps/com.zgnet.eClass.ts new file mode 100644 index 00000000..e28faae2 --- /dev/null +++ b/src/apps/com.zgnet.eClass.ts @@ -0,0 +1,31 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.zgnet.eClass', + name: '掌医课堂', + groups: [ + { + key: 1, + name: '开屏广告', + activityIds: ['com.zgnet.eClass.ui.SplashActivity'], + rules: [ + { + matches: 'TextView[id$="tv_close_time"&&text^="关闭"]', + snapshotUrls: ['https://gkd-kit.gitee.io/import/12644260'], + }, + ], + }, + { + key: 2, + enable: false, + name: '退出确认弹窗(默认关闭)', + rules: [ + { + matches: + '[text*="确定要退出"] < LinearLayout +n LinearLayout > TextView[id$="tv_exit_sure"]', + snapshotUrls: ['https://gkd-kit.gitee.io/import/12645513'], + }, + ], + }, + ], +});