René's URL Explorer Experiment


Title: 完善微信小程序消息推送(安全模式)JSON 入参的验签解密能力 by Copilot · Pull Request #4069 · binarywang/WxJava · GitHub

Open Graph Title: 完善微信小程序消息推送(安全模式)JSON 入参的验签解密能力 by Copilot · Pull Request #4069 · binarywang/WxJava

X Title: 完善微信小程序消息推送(安全模式)JSON 入参的验签解密能力 by Copilot · Pull Request #4069 · binarywang/WxJava

Description: 当前 WxMaMessage 对安全模式 XML 已支持“验签+解密”,但 JSON 仅支持解密,导致调用方需要手工提取 Encrypt 并自行验签。该变更补齐 JSON 与 XML 在安全模式下的能力对齐,支持直接完成来源校验与解密。 变更一:补充 JSON 安全模式重载(验签 + 解密) 在 WxMaMessage 新增 5 参数重载: fromEncryptedJson(String encryptedJson, WxMaConfig config, String timestamp, String nonce, String msgSignature) fromEncryptedJson(InputStream inputStream, WxMaConfig config, String timestamp, String nonce, String msgSignature) 解析 Encrypt 后复用 WxMaCryptUtils.decryptContent(...),按 token/timestamp/nonce/msgSignature 完成签名校验并解密。 变更二:保持兼容 原有 2 参数 fromEncryptedJson(String/InputStream, WxMaConfig) 保持不变,继续提供“仅解密”行为,不影响既有调用。 变更三:补充针对性用例 增加 JSON 安全模式成功路径(验签通过后正常解密解析)与失败路径(签名不匹配抛异常)覆盖,确保新重载行为清晰可预期。 示例调用: WxMaMessage message = WxMaMessage.fromEncryptedJson( encryptedJson, wxMaConfig, timestamp, nonce, msgSignature );

Open Graph Description: 当前 WxMaMessage 对安全模式 XML 已支持“验签+解密”,但 JSON 仅支持解密,导致调用方需要手工提取 Encrypt 并自行验签。该变更补齐 JSON 与 XML 在安全模式下的能力对齐,支持直接完成来源校验与解密。 变更一:补充 JSON 安全模式重载(验签 + 解密) 在 WxMaMessage 新增 5 参数重载: fromEncryptedJson(Str...

X Description: 当前 WxMaMessage 对安全模式 XML 已支持“验签+解密”,但 JSON 仅支持解密,导致调用方需要手工提取 Encrypt 并自行验签。该变更补齐 JSON 与 XML 在安全模式下的能力对齐,支持直接完成来源校验与解密。 变更一:补充 JSON 安全模式重载(验签 + 解密) 在 WxMaMessage 新增 5 参数重载: fromEncryptedJson(Str...

Opengraph URL: https://github.com/binarywang/WxJava/pull/4069

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:78539225-9e9f-4691-20b5-502bfb66aea2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA1CE:4B803:22951CB:2E53ACC:6A59953E
html-safe-noncee5e7e8c8759a5465072d9bd50c8adcacd0bd2ca24cb195b6faf0bfe262a1c39f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUNFOjRCODAzOjIyOTUxQ0I6MkU1M0FDQzo2QTU5OTUzRSIsInZpc2l0b3JfaWQiOiIzNjM5NjA4MDkwNzQyNTkyODMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac137d775ec90d22212767d5a874dd9702a80020ab50eae0f1662242a5014668b0
hovercard-subject-tagpull_request:4057500582
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/binarywang/WxJava/pull/4069/files
twitter:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/1143301?s=400&v=4
og:image:alt当前 WxMaMessage 对安全模式 XML 已支持“验签+解密”,但 JSON 仅支持解密,导致调用方需要手工提取 Encrypt 并自行验签。该变更补齐 JSON 与 XML 在安全模式下的能力对齐,支持直接完成来源校验与解密。 变更一:补充 JSON 安全模式重载(验签 + 解密) 在 WxMaMessage 新增 5 参数重载: fromEncryptedJson(Str...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/binarywang/WxJava git https://github.com/binarywang/WxJava.git
octolytics-dimension-user_id1343140
octolytics-dimension-user_loginbinarywang
octolytics-dimension-repository_id49122742
octolytics-dimension-repository_nwobinarywang/WxJava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49122742
octolytics-dimension-repository_network_root_nwobinarywang/WxJava
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release737e0bf019c29d8431b268ae84d528b052789210
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/binarywang/WxJava/pull/4069/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbinarywang%2FWxJava%2Fpull%2F4069%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbinarywang%2FWxJava%2Fpull%2F4069%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=binarywang%2FWxJava
Reloadhttps://github.com/binarywang/WxJava/pull/4069/files
Reloadhttps://github.com/binarywang/WxJava/pull/4069/files
Reloadhttps://github.com/binarywang/WxJava/pull/4069/files
binarywang https://github.com/binarywang
WxJavahttps://github.com/binarywang/WxJava
Please reload this pagehttps://github.com/binarywang/WxJava/pull/4069/files
Notifications https://github.com/login?return_to=%2Fbinarywang%2FWxJava
Fork 9.1k https://github.com/login?return_to=%2Fbinarywang%2FWxJava
Star 32.9k https://github.com/login?return_to=%2Fbinarywang%2FWxJava
Code https://github.com/binarywang/WxJava
Issues 16 https://github.com/binarywang/WxJava/issues
Pull requests 10 https://github.com/binarywang/WxJava/pulls
Discussions https://github.com/binarywang/WxJava/discussions
Actions https://github.com/binarywang/WxJava/actions
Wiki https://github.com/binarywang/WxJava/wiki
Security and quality 0 https://github.com/binarywang/WxJava/security
Insights https://github.com/binarywang/WxJava/pulse
Code https://github.com/binarywang/WxJava
Issues https://github.com/binarywang/WxJava/issues
Pull requests https://github.com/binarywang/WxJava/pulls
Discussions https://github.com/binarywang/WxJava/discussions
Actions https://github.com/binarywang/WxJava/actions
Wiki https://github.com/binarywang/WxJava/wiki
Security and quality https://github.com/binarywang/WxJava/security
Insights https://github.com/binarywang/WxJava/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fbinarywang%2FWxJava%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fbinarywang%2FWxJava%2Fissues%2Fnew%2Fchoose
Copilothttps://github.com/apps/copilot-swe-agent
develophttps://github.com/binarywang/WxJava/tree/develop
copilot/fix-json-data-supporthttps://github.com/binarywang/WxJava/tree/copilot/fix-json-data-support
Conversation 5 https://github.com/binarywang/WxJava/pull/4069
Commits 4 https://github.com/binarywang/WxJava/pull/4069/commits
Checks 0 https://github.com/binarywang/WxJava/pull/4069/checks
Files changed https://github.com/binarywang/WxJava/pull/4069/files
Please reload this pagehttps://github.com/binarywang/WxJava/pull/4069/files
完善微信小程序消息推送(安全模式)JSON 入参的验签解密能力 https://github.com/binarywang/WxJava/pull/4069/files#top
Show all changes 4 commits https://github.com/binarywang/WxJava/pull/4069/files
22f876d Initial plan Copilot Jul 15, 2026 https://github.com/binarywang/WxJava/pull/4069/commits/22f876d2aae5ee48a85f7151bf3360e76031b5d9
ccbfe8e 支持小程序消息推送JSON安全模式验签解密 Copilot Jul 15, 2026 https://github.com/binarywang/WxJava/pull/4069/commits/ccbfe8e47105e5a8861a611e155c5fe298567ed9
556d376 Potential fix for pull request finding binarywang Jul 15, 2026 https://github.com/binarywang/WxJava/pull/4069/commits/556d3762c477999af8cf4a44e29f509b39af47ec
3d32eef 修复 WxMaMessage.java 编译错误:移除多余的 } 并修正缩进与异常处理 Copilot Jul 15, 2026 https://github.com/binarywang/WxJava/pull/4069/commits/3d32eef6ae16a0b548f4240e5a3748a11b48e9d3
Clear filters https://github.com/binarywang/WxJava/pull/4069/files
Please reload this pagehttps://github.com/binarywang/WxJava/pull/4069/files
Please reload this pagehttps://github.com/binarywang/WxJava/pull/4069/files
WxMaMessage.java https://github.com/binarywang/WxJava/pull/4069/files#diff-8ea93d83df0154c45c6f10eb394f9764ac0fb9983a1707b8bdd7fb1fd8345427
WxMaMessageTest.java https://github.com/binarywang/WxJava/pull/4069/files#diff-5204bd72f75ae2df9317a05459381955e33022fab1c22cd86e15911675bb4d19
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.javahttps://github.com/binarywang/WxJava/pull/4069/files#diff-8ea93d83df0154c45c6f10eb394f9764ac0fb9983a1707b8bdd7fb1fd8345427
View file https://github.com/binarywang/WxJava/blob/3d32eef6ae16a0b548f4240e5a3748a11b48e9d3/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/WxMaMessage.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/binarywang/WxJava/pull/4069/{{ revealButtonHref }}
https://github.com/binarywang/WxJava/pull/4069/files#diff-8ea93d83df0154c45c6f10eb394f9764ac0fb9983a1707b8bdd7fb1fd8345427
https://github.com/binarywang/WxJava/pull/4069/files#diff-8ea93d83df0154c45c6f10eb394f9764ac0fb9983a1707b8bdd7fb1fd8345427
https://github.com/binarywang/WxJava/pull/4069/files#diff-8ea93d83df0154c45c6f10eb394f9764ac0fb9983a1707b8bdd7fb1fd8345427
weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/WxMaMessageTest.javahttps://github.com/binarywang/WxJava/pull/4069/files#diff-5204bd72f75ae2df9317a05459381955e33022fab1c22cd86e15911675bb4d19
View file https://github.com/binarywang/WxJava/blob/3d32eef6ae16a0b548f4240e5a3748a11b48e9d3/weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/bean/WxMaMessageTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/binarywang/WxJava/pull/4069/{{ revealButtonHref }}
https://github.com/binarywang/WxJava/pull/4069/files#diff-5204bd72f75ae2df9317a05459381955e33022fab1c22cd86e15911675bb4d19
https://github.com/binarywang/WxJava/pull/4069/files#diff-5204bd72f75ae2df9317a05459381955e33022fab1c22cd86e15911675bb4d19
https://github.com/binarywang/WxJava/pull/4069/files#diff-5204bd72f75ae2df9317a05459381955e33022fab1c22cd86e15911675bb4d19
https://github.com/binarywang/WxJava/pull/4069/files#diff-5204bd72f75ae2df9317a05459381955e33022fab1c22cd86e15911675bb4d19
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.