From 9fdffbc296767e0a77980e24f7bd28c185481641 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Tue, 19 Nov 2024 16:48:32 +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, 5 insertions(+), 5 deletions(-) diff --git a/app/api/controller/Gt.php b/app/api/controller/Gt.php index dc06244c..e4294d5e 100644 --- a/app/api/controller/Gt.php +++ b/app/api/controller/Gt.php @@ -262,13 +262,13 @@ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwRUsPpbQPhBWrxFhG00k9VBgnHc7dCZyTQYI ksort($params); reset($params); $str = ""; + $t = array(); foreach($params as $key=>$value){ - if($key==0){ - $str = $key."=".$value; - }else{ - $str.= "&".$key."=".$value; - } + $t[] = $key."=".$value; } + print_r($t); + $str = implode("&",$t); + var_dump($str); // $str = http_build_query($params,'','&'); return $str; }