From cc460dbdbaf308b9c1d9452b15de2d399be96237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Mon, 19 Jun 2023 14:17:22 +0800 Subject: [PATCH] Update BasicWePay.php --- WePayV3/Contracts/BasicWePay.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/WePayV3/Contracts/BasicWePay.php b/WePayV3/Contracts/BasicWePay.php index 7807649..9092eb1 100644 --- a/WePayV3/Contracts/BasicWePay.php +++ b/WePayV3/Contracts/BasicWePay.php @@ -294,7 +294,9 @@ abstract class BasicWePay protected function _autoCert() { $certs = $this->tmpFile("{$this->config['mch_id']}_certs"); - if (is_array($certs)) foreach ($certs as $k => $v) if ($v['expire'] < time()) unset($certs[$k]); + if (is_array($certs)) foreach ($certs as $k => $v) { + if ($v['expire'] < time()) unset($certs[$k]); + } if (empty($certs)) { Cert::instance($this->config)->download(); $certs = $this->tmpFile("{$this->config['mch_id']}_certs");