#89 增加 file_exists 读取证书文件

This commit is contained in:
邹景立 2025-01-08 14:17:40 +08:00
parent 5b6b09b955
commit 1443769c52

View File

@ -350,6 +350,9 @@ abstract class BasicAliPay
*/
private function getRootCertSN($sign)
{
if (strlen($sign) < 500 && file_exists($sign)) {
$sign = file_get_contents($sign);
}
$sn = null;
$array = explode('-----END CERTIFICATE-----', $sign);
for ($i = 0; $i < count($array) - 1; $i++) {