From e0d236d757560c75dbc84176a291847b305e87b8 Mon Sep 17 00:00:00 2001 From: zhouzhou Date: Wed, 28 Dec 2022 17:56:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=89=88=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=B8=A6=E7=A7=AF=E5=88=86=E6=83=85=E5=86=B5?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/vone/vmq/NeNotificationService2.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/vone/vmq/NeNotificationService2.java b/app/src/main/java/com/vone/vmq/NeNotificationService2.java index 34ec73b..0a94a75 100644 --- a/app/src/main/java/com/vone/vmq/NeNotificationService2.java +++ b/app/src/main/java/com/vone/vmq/NeNotificationService2.java @@ -163,9 +163,18 @@ public void onNotificationPosted(StatusBarNotification sbn) { if (content.contains("通过扫码向你付款") || content.contains("成功收款") || title.contains("通过扫码向你付款") || title.contains("成功收款") || content.contains("店员通") || title.contains("店员通")) { - String money = getMoney(content); - if (money == null) { + String money; + // 新版支付宝,会显示积分情况下。先匹配标题上的金额 + if (content.contains("商家积分")) { money = getMoney(title); + if (money == null) { + money = getMoney(content); + } + } else { + money = getMoney(content); + if (money == null) { + money = getMoney(title); + } } if (money != null) { Log.d(TAG, "onAccessibilityEvent: 匹配成功: 支付宝 到账 " + money);