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

异步回调签名错误 #125

Open
HuangChenyang123 opened this issue Feb 18, 2021 · 0 comments
Open

异步回调签名错误 #125

HuangChenyang123 opened this issue Feb 18, 2021 · 0 comments

Comments

@HuangChenyang123
Copy link

问题:当签名中存在“=”号时签名校验错误
原因:进行签名校验时,需要先从传回来的String类型的notifyData中提取签名,该notifyData是这样的结构:“total_amount=0.01&sign=dfisajfjkasd==”。源码中采用的提取方式是先根据“&”分割字符串,再对每个子字符串用“=”分割并存入map中,但是当签名中存在“=”时这样分割就会出现问题,从而导致不能正确提取出签名,进而签名校验错误。

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

1 participant