From ccd5ece58d53bdbde23bc582eda0a54649726343 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Thu, 25 Oct 2018 18:22:38 +0800 Subject: [PATCH] message --- service/Application/Library/AlipayLife.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/Application/Library/AlipayLife.class.php b/service/Application/Library/AlipayLife.class.php index 66d170b07..be44d3ef9 100644 --- a/service/Application/Library/AlipayLife.class.php +++ b/service/Application/Library/AlipayLife.class.php @@ -58,7 +58,7 @@ class AlipayLife { $res = "-----BEGIN RSA PRIVATE KEY-----\n"; $res .= wordwrap($this->life_data['rsa_private'], 64, "\n", true); - $res .= "\n-----END RSA PRIVATE KEY-----"; + $res .= "\nEND RSA PRIVATE KEY-----"; return openssl_sign($prestr, $sign, $res, OPENSSL_ALGO_SHA256) ? base64_encode($sign) : null; }