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; }