mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-11-07 04:02:14 +08:00
fix: 未读取到平台证书提示异常
This commit is contained in:
parent
97825e0556
commit
1182a2dc97
@ -44,6 +44,9 @@ class Cert extends BasicWePay
|
|||||||
try {
|
try {
|
||||||
$certs = [];
|
$certs = [];
|
||||||
$result = $this->doRequest('GET', '/v3/certificates');
|
$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']);
|
$decrypt = new DecryptAes($this->config['mch_v3_key']);
|
||||||
foreach ($result['data'] as $vo) {
|
foreach ($result['data'] as $vo) {
|
||||||
$certs[$vo['serial_no']] = [
|
$certs[$vo['serial_no']] = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user