Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支付宝直接转账,获取的金额为 -0.0 #101

Open
johoo opened this issue Jun 9, 2020 · 6 comments
Open

支付宝直接转账,获取的金额为 -0.0 #101

johoo opened this issue Jun 9, 2020 · 6 comments

Comments

@johoo
Copy link

johoo commented Jun 9, 2020

直接转账获取的金额是-0.0,扫码转账读取金额没问题,哪位大神解决了吗?

@cqsn558
Copy link

cqsn558 commented Jun 9, 2020

你这问题应该是下面的代码问题吧?因为转帐的推送消息没有金额,所以就固定为一个值了。
if(content.contains("向你转了1笔钱")){ Map<String,String> postmap=new HashMap<String,String>(); postmap.put("type","alipay-transfer"); postmap.put("time",notitime); postmap.put("title","转账"); postmap.put("money","-0.00"); postmap.put("content",content); postmap.put("transferor",whoTransferred(content));

@WeihuaGu
Copy link
Collaborator

WeihuaGu commented Jun 9, 2020

转账单凭通知里是获得不了金额的,所以会是-0.00。能获得,说明无障碍起了作用

@johoo
Copy link
Author

johoo commented Jun 10, 2020

转账单凭通知里是获得不了金额的,所以会是-0.00。能获得,说明无障碍起了作用

谢谢,您说的无障碍是在手机系统里设置,还是支付宝有类似操作?

@johoo
Copy link
Author

johoo commented Jun 10, 2020

你这问题应该是下面的代码问题吧?因为转帐的推送消息没有金额,所以就固定为一个值了。
if(content.contains("向你转了1笔钱")){ Map<String,String> postmap=new HashMap<String,String>(); postmap.put("type","alipay-transfer"); postmap.put("time",notitime); postmap.put("title","转账"); postmap.put("money","-0.00"); postmap.put("content",content); postmap.put("transferor",whoTransferred(content));

对,获取不了金额,不知道还有没其他的办法

@WeihuaGu
Copy link
Collaborator

@johoo 在这个应用的设置里,选上允许无障碍获取更多信息的那个,然后它会跳到系统的无障碍,允许本应用就行了。然后重启,然后还要去掉密码锁屏

@johoo
Copy link
Author

johoo commented Jun 15, 2020

@johoo 在这个应用的设置里,选上允许无障碍获取更多信息的那个,然后它会跳到系统的无障碍,允许本应用就行了。然后重启,然后还要去掉密码锁屏

谢谢,现在能看到了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants