fix: 未读取到平台证书提示异常

This commit is contained in:
邹景立 2025-04-21 22:29:53 +08:00
parent 97825e0556
commit 1182a2dc97

View File

@ -44,6 +44,9 @@ class Cert extends BasicWePay
try {
$certs = [];
$result = $this->doRequest('GET', '/v3/certificates');
if (empty($result['data']) && !empty($result['message'])) {
throw new InvalidResponseException($result['message']);
}
$decrypt = new DecryptAes($this->config['mch_v3_key']);
foreach ($result['data'] as $vo) {
$certs[$vo['serial_no']] = [