Skip to content

Commit

Permalink
修复识别问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzhouprogram committed Dec 4, 2024
1 parent 7e9095e commit 1d8158e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/src/main/java/com/vone/vmq/NeNotificationService2.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,13 @@ public void run() {
|| content.contains("微信收款商业版")
|| (title.equals("对外收款") || title.equals("企业微信")) &&
(content.contains("成功收款") || content.contains("收款通知"))) {
String money = getMoney(content);
String money = getMoney2(content);
if (money == null) { // 继续使用匹配 xxx元的方式
money = getMoney2(title);
}
if (money == null) { // 使用旧版的匹配方式,可能识别错误,不够精准
money = getMoney(content);
}
if (money != null) {
Log.d(TAG, "onAccessibilityEvent: 匹配成功: 微信到账 " + money);
try {
Expand Down

0 comments on commit 1d8158e

Please sign in to comment.