Skip to content

Commit

Permalink
新版支付宝通知带积分情况处理
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzhouprogram committed Dec 28, 2022
1 parent 9987e9c commit e0d236d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions app/src/main/java/com/vone/vmq/NeNotificationService2.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e0d236d

Please sign in to comment.