This commit is contained in:
devil_gong 2018-10-25 18:27:48 +08:00
parent d695bfb2b0
commit 551cb5ac93

View File

@ -58,7 +58,7 @@ class AlipayLife
{
$res = "-----BEGIN RSA PRIVATE KEY-----\n";
$res .= wordwrap($this->life_data['rsa_private'], 64, "\n", true);
$res .= "\nEND RSA PRIVATE KEY-----";
$res .= "\n-----END RSA PRIVATE KEY-----";
return openssl_sign($prestr, $sign, $res, OPENSSL_ALGO_SHA256) ? base64_encode($sign) : null;
}