From 046914a4a96f7bbe8af71166c7119154b72d1afb Mon Sep 17 00:00:00 2001 From: 1 <39649490+xubenkui@users.noreply.github.com> Date: Wed, 20 Oct 2021 15:41:46 +0800 Subject: [PATCH] Update AopCertClient.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 要求可选参数必须在必选参数之后 --- aop/AopCertClient.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aop/AopCertClient.php b/aop/AopCertClient.php index e44371db60..a33695a0df 100644 --- a/aop/AopCertClient.php +++ b/aop/AopCertClient.php @@ -386,7 +386,7 @@ public function rsaDecrypt($data, $rsaPrivateKeyPem, $charset) { return $strnull; } - function splitCN($cont, $n = 0, $subnum, $charset) { + function splitCN($cont, $n, $subnum, $charset) { //$len = strlen($cont) / 3; $arrr = array(); for ($i = $n; $i < strlen($cont); $i += $subnum) { @@ -399,7 +399,7 @@ function splitCN($cont, $n = 0, $subnum, $charset) { return $arrr; } - function subCNchar($str, $start = 0, $length, $charset = "gbk") { + function subCNchar($str, $start, $length, $charset = "gbk") { if (strlen($str) <= $length) { return $str; } @@ -1300,4 +1300,4 @@ function echoDebug($content) { echo "
" . $content; } } -} \ No newline at end of file +}