Skip to content

Commit

Permalink
fix:修复微信支付宝搞反的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkioTomas committed May 29, 2023
1 parent e366bac commit fff8415
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class NotificationService : NotificationListenerService() {
var money = PushUtils.extractAmount(content)
if (money < 0) money = PushUtils.extractAmount(title)
Logger.d(TAG, "匹配成功: 支付宝 到账 $money", this)
PushUtils.appPush(1, money,this)
PushUtils.appPush(2, money,this)
PayUtils.add(PushUtils.convertTimestampToDateTime(System.currentTimeMillis()),1,money)
}
}
Expand All @@ -207,7 +207,7 @@ class NotificationService : NotificationListenerService() {
var money = PushUtils.extractAmount(content)
if (money < 0) money = PushUtils.extractAmount(title)
Logger.d(TAG, "匹配成功: 微信到账 $money", this)
PushUtils.appPush(2, money,this)
PushUtils.appPush(1, money,this)
PayUtils.add(PushUtils.convertTimestampToDateTime(System.currentTimeMillis()),2,money)
}
}
Expand Down

0 comments on commit fff8415

Please sign in to comment.