【微信支付】修复初始化api v3请求时证书序列号值生成条件错误的问题 by limingAlex1314 · Pull Request #3825 · binarywang/WxJava
binarywang / WxJava Public
-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Merged
Merged
Conversation
binarywang
requested a review
from Copilot
Copilot
AI
reviewed
Copilot
AI
left a comment
Copilot AI left a comment
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
此 PR 修复了微信支付 API v3 初始化过程中的一个严重逻辑错误。原代码在判断是否需要从证书文件加载证书序列号时,由于括号位置错误导致条件判断不正确。修复后确保当任一证书来源(路径、字符串或内容)存在时都能正确触发证书加载逻辑。
主要修改:
- 修正了条件表达式中的括号位置,将三个 OR 条件正确地组合在一起
binarywang
added this to the
4.8.0 milestone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment