Skip to content

Commit

Permalink
增加type表示平台,微信用wechat表示,z支付宝用alipy表示
Browse files Browse the repository at this point in the history
  • Loading branch information
weihuagu committed May 4, 2019
1 parent 56c457b commit b04a0d4
Show file tree
Hide file tree
Showing 8 changed files with 169 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public void handleNotification(){
if(title.contains("支付宝")){
if(content.contains("成功收款") | content.contains("向你付款")){
Map<String,String> postmap=new HashMap<String,String>();
postmap.put("type","alipay");
postmap.put("time",notitime);
postmap.put("title","支付宝支付");
postmap.put("money",extractMoney(content));
Expand Down
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 ;
}
}



}













}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public MipushNotificationHandle(String pkgtype,Notification notification,IDoPost
public void handleNotification(){
if(content.contains("成功收款")){
Map<String,String> postmap=new HashMap<String,String>();
postmap.put("type","alipay");
postmap.put("time",notitime);
postmap.put("title","支付宝支付");
postmap.put("money",extractMoney(content));
Expand Down
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 ;
}



}













}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public WechatNotificationHandle(String pkgtype,Notification notification,IDoPost
public void handleNotification(){
if((title.contains("微信支付")|title.contains("微信收款"))&&content.contains("收款")){
Map<String,String> postmap=new HashMap<String,String>();
postmap.put("type","wechat");
postmap.put("time",notitime);
postmap.put("title",title);
postmap.put("money",extractMoney(content));
Expand Down
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 ;
}



}













}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public XposedmoduleNotificationHandle(String pkgtype,Notification notification,I
public void handleNotification(){
if(content.contains("微信支付")&&content.contains("收款")){
Map<String,String> postmap=new HashMap<String,String>();
postmap.put("type","wechat");
postmap.put("time",notitime);
postmap.put("title","微信支付");
postmap.put("money",extractMoney(content));
Expand Down
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 ;
}




}













}

0 comments on commit b04a0d4

Please sign in to comment.