8000 修复创建JS-API签名的漏洞 by gaigeshen · Pull Request #22 · binarywang/WxJava · GitHub
[go: up one dir, main page]

Skip to content

修复创建JS-API签名的漏洞 #22

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

Merged
merged 1 commit into from
Aug 16, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ public WxJsapiSignature createJsapiSignature(String url) throws WxErrorException
jsapiSignature.setNoncestr(noncestr);
jsapiSignature.setUrl(url);
jsapiSignature.setSignature(signature);

// Fixed bug
jsapiSignature.setAppid(this.wxCpConfigStorage.getCorpId());

return jsapiSignature;
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
Expand Down
0