René's URL Explorer Experiment


Title: 【微信支付】修复公钥模式下V3接口未设置Wechatpay-Serial请求头导致的验签失败 by HerveyHall · Pull Request #3548 · binarywang/WxJava · GitHub

Open Graph Title: 【微信支付】修复公钥模式下V3接口未设置Wechatpay-Serial请求头导致的验签失败 by HerveyHall · Pull Request #3548 · binarywang/WxJava

X Title: 【微信支付】修复公钥模式下V3接口未设置Wechatpay-Serial请求头导致的验签失败 by HerveyHall · Pull Request #3548 · binarywang/WxJava

Description: 实际使用过程中发现公钥模式下调用微信支付V3接口时,未设置Wechatpay-Serial请求头会返回错误信息“应答的微信支付签名验证失败”,但如果兼容两种模式并设置正确的Wechatpay-Serial请求头就可以解决该问题

Open Graph Description: 实际使用过程中发现公钥模式下调用微信支付V3接口时,未设置Wechatpay-Serial请求头会返回错误信息“应答的微信支付签名验证失败”,但如果兼容两种模式并设置正确的Wechatpay-Serial请求头就可以解决该问题

X Description: 实际使用过程中发现公钥模式下调用微信支付V3接口时,未设置Wechatpay-Serial请求头会返回错误信息“应答的微信支付签名验证失败”,但如果兼容两种模式并设置正确的Wechatpay-Serial请求头就可以解决该问题

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:54d786cf-3d80-016f-8fce-56827ae154d8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F2C:5A53E:151D718:1C4A6B5:6964A58C
html-safe-noncebc0c0186857de1ccf4baff42f97a7f7dfa6dbd68ba79f0198ac15d09d332a331
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjJDOjVBNTNFOjE1MUQ3MTg6MUM0QTZCNTo2OTY0QTU4QyIsInZpc2l0b3JfaWQiOiI0Mjc3MDQ3NDE4NjA0MDA0NzQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac551fdd52c21415f583c70d68a0a275504d2d1794806b1196f9850dfc8f3d51cd
hovercard-subject-tagpull_request:2452950016
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/binarywang/WxJava/3548/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5892d8544210afbe647ba4681598a441c323d19f0c195428071a084e5b8360fd/binarywang/WxJava/pull/3548
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5892d8544210afbe647ba4681598a441c323d19f0c195428071a084e5b8360fd/binarywang/WxJava/pull/3548
og:image:alt实际使用过程中发现公钥模式下调用微信支付V3接口时,未设置Wechatpay-Serial请求头会返回错误信息“应答的微信支付签名验证失败”,但如果兼容两种模式并设置正确的Wechatpay-Serial请求头就可以解决该问题
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameHerveyHall
hostnamegithub.com
expected-hostnamegithub.com
None15579c46431b7fd25941c3b09010f74fd1890c7a35226839bbbf40ce70fb3057
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release499abb347cb197601d399c346cfeb4b3fa135d5c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/binarywang/WxJava/pull/3548#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbinarywang%2FWxJava%2Fpull%2F3548
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F3548
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=binarywang%2FWxJava
Reloadhttps://github.com/binarywang/WxJava/pull/3548
Reloadhttps://github.com/binarywang/WxJava/pull/3548
Reloadhttps://github.com/binarywang/WxJava/pull/3548
binarywang https://github.com/binarywang
WxJavahttps://github.com/binarywang/WxJava
Please reload this pagehttps://github.com/binarywang/WxJava/pull/3548
Notifications https://github.com/login?return_to=%2Fbinarywang%2FWxJava
Fork 9k https://github.com/login?return_to=%2Fbinarywang%2FWxJava
Star 32.4k https://github.com/login?return_to=%2Fbinarywang%2FWxJava
Code https://github.com/binarywang/WxJava
Issues 17 https://github.com/binarywang/WxJava/issues
Pull requests 4 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 Uh oh! There was an error while loading. Please reload this page. https://github.com/binarywang/WxJava/security
Please reload this pagehttps://github.com/binarywang/WxJava/pull/3548
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 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
Jump to bottomhttps://github.com/binarywang/WxJava/pull/3548#issue-comment-box
binarywanghttps://github.com/binarywang
binarywang:develophttps://github.com/binarywang/WxJava/tree/develop
HerveyHall:develophttps://github.com/HerveyHall/WxJava/tree/develop
【微信支付】修复公钥模式下V3接口未设置Wechatpay-Serial请求头导致的验签失败 https://github.com/binarywang/WxJava/pull/3548#top
binarywanghttps://github.com/binarywang
binarywang:develophttps://github.com/binarywang/WxJava/tree/develop
HerveyHall:develophttps://github.com/HerveyHall/WxJava/tree/develop
Conversation 9 https://github.com/binarywang/WxJava/pull/3548
Commits 3 https://github.com/binarywang/WxJava/pull/3548/commits
Checks 0 https://github.com/binarywang/WxJava/pull/3548/checks
Files changed 3 https://github.com/binarywang/WxJava/pull/3548/files
https://github.co/hiddenchars
https://github.com/binarywang/WxJava/pull/{{ revealButtonHref }}
https://github.com/HerveyHall
HerveyHallhttps://github.com/HerveyHall
Apr 11, 2025https://github.com/binarywang/WxJava/pull/3548#issue-2987680567
Please reload this pagehttps://github.com/binarywang/WxJava/pull/3548
https://github.com/HerveyHall
【微信支付】修复公钥模式下V3接口未设置Wechatpay-Serial请求头导致的验签失败https://github.com/binarywang/WxJava/pull/3548/commits/1536eca171ddbabcc132cebc6e875e399fbc0266
1536ecahttps://github.com/binarywang/WxJava/pull/3548/commits/1536eca171ddbabcc132cebc6e875e399fbc0266
https://github.com/HerveyHall
HerveyHallhttps://github.com/HerveyHall
Apr 11, 2025https://github.com/binarywang/WxJava/pull/3548#issuecomment-2795998429
Please reload this pagehttps://github.com/binarywang/WxJava/pull/3548
https://github.com/binarywang
binarywanghttps://github.com/binarywang
Apr 11, 2025https://github.com/binarywang/WxJava/pull/3548#issuecomment-2796155355
Please reload this pagehttps://github.com/binarywang/WxJava/pull/3548
https://github.com/HerveyHall
HerveyHallhttps://github.com/HerveyHall
Apr 11, 2025https://github.com/binarywang/WxJava/pull/3548#issuecomment-2796205050
Please reload this pagehttps://github.com/binarywang/WxJava/pull/3548
https://github.com/binarywang
binarywanghttps://github.com/binarywang
Apr 14, 2025https://github.com/binarywang/WxJava/pull/3548#issuecomment-2800387094
Please reload this pagehttps://github.com/binarywang/WxJava/pull/3548
https://github.com/binarywang
binarywanghttps://github.com/binarywang
4.7.5https://github.com/binarywang/WxJava/milestone/89
Apr 14, 2025https://github.com/binarywang/WxJava/pull/3548#event-17241290722
HerveyHallhttps://github.com/HerveyHall
April 15, 2025 11:38https://github.com/binarywang/WxJava/pull/3548#commits-pushed-a815366
https://github.com/HerveyHall
增加配置参数,决定是否在请求v3接口时全部添加Wechatpay-Serial请求头,默认需要添加https://github.com/binarywang/WxJava/pull/3548/commits/a8153668796f23690f99eb352d36fc1c704669f3
a815366https://github.com/binarywang/WxJava/pull/3548/commits/a8153668796f23690f99eb352d36fc1c704669f3
https://github.com/HerveyHall
调整配置参数strictlyNeedWechatPaySerial的默认值,改为默认不添加https://github.com/binarywang/WxJava/pull/3548/commits/ba91545eaf0138ea8b7819aa22d0c8c4998ce98e
ba91545https://github.com/binarywang/WxJava/pull/3548/commits/ba91545eaf0138ea8b7819aa22d0c8c4998ce98e
https://github.com/binarywang
binarywanghttps://github.com/binarywang
Apr 15, 2025 https://github.com/binarywang/WxJava/pull/3548#pullrequestreview-2766611714
View reviewed changes https://github.com/binarywang/WxJava/pull/3548/files/ba91545eaf0138ea8b7819aa22d0c8c4998ce98e
...in-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.javahttps://github.com/binarywang/WxJava/pull/3548/files/ba91545eaf0138ea8b7819aa22d0c8c4998ce98e#diff-ed851b75ae78126d7b740ed2152d8809aacd48250f045b406e5787262b444a83
Please reload this pagehttps://github.com/binarywang/WxJava/pull/3548
...a-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceApacheHttpImpl.javahttps://github.com/binarywang/WxJava/pull/3548/files/ba91545eaf0138ea8b7819aa22d0c8c4998ce98e#diff-349aaa684c3cd33968621737860ebc10c0f56941a9a303db3ffc7aa25de9a00d
Please reload this pagehttps://github.com/binarywang/WxJava/pull/3548
https://github.com/binarywang
binarywanghttps://github.com/binarywang
e16e0e9https://github.com/binarywang/WxJava/commit/e16e0e93735884472300c7e77df63e4d586ec11d
Apr 15, 2025https://github.com/binarywang/WxJava/pull/3548#event-17263160690
Feature implementation from commits b225afb..854b50b codeOwlAI/WxJava#2 https://github.com/codeOwlAI/WxJava/pull/2
Feature implementation from commits 71fbc2b..6a4ed91 codeOwlAI/WxJava#3 https://github.com/codeOwlAI/WxJava/pull/3
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbinarywang%2FWxJava%2Fpull%2F3548
https://github.com/binarywang
binarywang https://github.com/binarywang
https://github.com/binarywang/WxJava/pull/3548/files/ba91545eaf0138ea8b7819aa22d0c8c4998ce98e
4.7.5 https://github.com/binarywang/WxJava/milestone/89
Please reload this pagehttps://github.com/binarywang/WxJava/pull/3548
https://github.com/HerveyHall
https://github.com/binarywang
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.