forked from c-kzxvldkhX/receiptnotice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
weihuagu
committed
May 4, 2019
1 parent
56c457b
commit b04a0d4
Showing
8 changed files
with
169 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
app/src/main/java/com/weihuagu/receiptnotice/AlipayNotificationHandle.java~
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package com.weihuagu.receiptnotice; | ||
import android.app.Notification; | ||
|
||
import java.util.Map; | ||
import java.util.HashMap; | ||
|
||
|
||
public class AlipayNotificationHandle extends NotificationHandle{ | ||
public AlipayNotificationHandle(String pkgtype,Notification notification,IDoPost postpush){ | ||
super(pkgtype,notification,postpush); | ||
} | ||
|
||
public void handleNotification(){ | ||
if(title.contains("支付宝")){ | ||
if(content.contains("成功收款") | content.contains("向你付款")){ | ||
Map<String,String> postmap=new HashMap<String,String>(); | ||
postmap.put("time",notitime); | ||
postmap.put("title","支付宝支付"); | ||
postmap.put("money",extractMoney(content)); | ||
postmap.put("content",content); | ||
|
||
postpush.doPost(postmap); | ||
return ; | ||
} | ||
} | ||
|
||
|
||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
app/src/main/java/com/weihuagu/receiptnotice/MipushNotificationHandle.java~
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.weihuagu.receiptnotice; | ||
import android.app.Notification; | ||
|
||
import java.util.Map; | ||
import java.util.HashMap; | ||
|
||
|
||
public class MipushNotificationHandle extends NotificationHandle{ | ||
public MipushNotificationHandle(String pkgtype,Notification notification,IDoPost postpush){ | ||
super(pkgtype,notification,postpush); | ||
} | ||
|
||
public void handleNotification(){ | ||
if(content.contains("成功收款")){ | ||
Map<String,String> postmap=new HashMap<String,String>(); | ||
postmap.put("time",notitime); | ||
postmap.put("title","支付宝支付"); | ||
postmap.put("money",extractMoney(content)); | ||
postmap.put("content",content); | ||
|
||
postpush.doPost(postmap); | ||
return ; | ||
} | ||
|
||
|
||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
app/src/main/java/com/weihuagu/receiptnotice/WechatNotificationHandle.java~
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.weihuagu.receiptnotice; | ||
import android.app.Notification; | ||
|
||
import java.util.Map; | ||
import java.util.HashMap; | ||
|
||
|
||
public class WechatNotificationHandle extends NotificationHandle{ | ||
public WechatNotificationHandle(String pkgtype,Notification notification,IDoPost postpush){ | ||
super(pkgtype,notification,postpush); | ||
} | ||
|
||
public void handleNotification(){ | ||
if((title.contains("微信支付")|title.contains("微信收款"))&&content.contains("收款")){ | ||
Map<String,String> postmap=new HashMap<String,String>(); | ||
postmap.put("time",notitime); | ||
postmap.put("title",title); | ||
postmap.put("money",extractMoney(content)); | ||
postmap.put("content",content); | ||
postpush.doPost(postmap); | ||
return ; | ||
} | ||
|
||
|
||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
app/src/main/java/com/weihuagu/receiptnotice/XposedmoduleNotificationHandle.java~
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.weihuagu.receiptnotice; | ||
import android.app.Notification; | ||
|
||
import java.util.Map; | ||
import java.util.HashMap; | ||
|
||
|
||
public class XposedmoduleNotificationHandle extends NotificationHandle{ | ||
public XposedmoduleNotificationHandle(String pkgtype,Notification notification,IDoPost postpush){ | ||
super(pkgtype,notification,postpush); | ||
} | ||
|
||
public void handleNotification(){ | ||
if(content.contains("微信支付")&&content.contains("收款")){ | ||
Map<String,String> postmap=new HashMap<String,String>(); | ||
postmap.put("time",notitime); | ||
postmap.put("title","微信支付"); | ||
postmap.put("money",extractMoney(content)); | ||
postmap.put("content",content); | ||
postpush.doPost(postmap); | ||
return ; | ||
} | ||
|
||
|
||
|
||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
} |