Skip to content

修复对GetNeedVerify()为false的请求仍验证平台证书存在生的问题。#190

Merged
roc916 merged 1 commit intoessensoft:devfrom
xljiulang:WeChatPayClient-fix
Nov 23, 2025
Merged

修复对GetNeedVerify()为false的请求仍验证平台证书存在生的问题。#190
roc916 merged 1 commit intoessensoft:devfrom
xljiulang:WeChatPayClient-fix

Conversation

@xljiulang
Copy link
Copy Markdown
Contributor

问题描述

WeChatPayClient在处理request时,未考虑request.GetNeedVerify()的情况下,就执行了检查平台证书的存在性要求。

问题影响

造成WeChatPayClient首次下载平台证书时,因为平台证书不存在而无法下载平台证书的鸡和蛋的问题。

修改方案

尝试读取平台证书而不校验,需要用到平台证书时才根据实际选择不同的验证方式和逻辑。

@roc916
Copy link
Copy Markdown
Contributor

roc916 commented Sep 29, 2025

@xljiulang
Copy link
Copy Markdown
Contributor Author

@roc916
Copy link
Copy Markdown
Contributor

roc916 commented Sep 29, 2025

等我有时间再看下吧。😓

@roc916 roc916 merged commit 050d017 into essensoft:dev Nov 23, 2025
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

Successfully merging this pull request may close these issues.

2 participants