mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-29 18:39:16 +08:00
适配php8
This commit is contained in:
parent
df18225c97
commit
4572b64922
@ -144,7 +144,7 @@ class Alipay
|
||||
openssl_private_decrypt($data, $decrypt, $res, OPENSSL_ALGO_SHA256);
|
||||
$result .= $decrypt;
|
||||
}
|
||||
openssl_free_key($res);
|
||||
unset($res);
|
||||
return $result;
|
||||
}
|
||||
|
||||
@ -168,7 +168,7 @@ class Alipay
|
||||
if($pkeyid)
|
||||
{
|
||||
$verify = openssl_verify($prestr, $sign, $pkeyid, OPENSSL_ALGO_SHA256);
|
||||
openssl_free_key($pkeyid);
|
||||
unset($pkeyid);
|
||||
}
|
||||
return (isset($verify) && $verify == 1) ? true : false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user