修复对GetNeedVerify()为false的请求仍验证平台证书存在生的问题。#190
Merged
roc916 merged 1 commit intoessensoft:devfrom Nov 23, 2025
Merged
Conversation
Contributor
Author
Contributor
|
等我有时间再看下吧。😓 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题描述
WeChatPayClient在处理request时,未考虑request.GetNeedVerify()的情况下,就执行了检查平台证书的存在性要求。
问题影响
造成WeChatPayClient首次下载平台证书时,因为平台证书不存在而无法下载平台证书的鸡和蛋的问题。
修改方案
尝试读取平台证书而不校验,需要用到平台证书时才根据实际选择不同的验证方式和逻辑。