From f4a5809e6b92539fd9114c583304f43206c170ec Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Tue, 19 Nov 2024 16:46:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E9=80=9A=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Gt.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/api/controller/Gt.php b/app/api/controller/Gt.php index 702bc7fd..dc06244c 100644 --- a/app/api/controller/Gt.php +++ b/app/api/controller/Gt.php @@ -261,7 +261,15 @@ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwRUsPpbQPhBWrxFhG00k9VBgnHc7dCZyTQYI function ASCII($params=array()){ ksort($params); reset($params); - $str = http_build_query($params,'','&'); + $str = ""; + foreach($params as $key=>$value){ + if($key==0){ + $str = $key."=".$value; + }else{ + $str.= "&".$key."=".$value; + } + } +// $str = http_build_query($params,'','&'); return $str; } public function sign($param,$key_pem)