作者 lihan
1 个管道 的构建 通过 耗费 0 秒

支付宝

@@ -394,8 +394,7 @@ class AopClient { @@ -394,8 +394,7 @@ class AopClient {
394 return $requestUrl; 394 return $requestUrl;
395 } else { 395 } else {
396 //拼接表单字符串 396 //拼接表单字符串
397 - return $requestUrl;  
398 - //return $this->buildRequestForm($totalParams); 397 + return $this->buildRequestForm($totalParams);
399 } 398 }
400 399
401 400
@@ -411,8 +410,7 @@ class AopClient { @@ -411,8 +410,7 @@ class AopClient {
411 protected function buildRequestForm($para_temp) { 410 protected function buildRequestForm($para_temp) {
412 411
413 $sHtml = "<form id='alipaysubmit' name='alipaysubmit' action='".$this->gatewayUrl."?charset=".trim($this->postCharset)."' method='POST'>"; 412 $sHtml = "<form id='alipaysubmit' name='alipaysubmit' action='".$this->gatewayUrl."?charset=".trim($this->postCharset)."' method='POST'>";
414 - //while (list ($key, $val) = each ($para_temp)) {  
415 - foreach ($para_temp as $key => $val) { 413 + while (list ($key, $val) = each ($para_temp)) {
416 if (false === $this->checkEmpty($val)) { 414 if (false === $this->checkEmpty($val)) {
417 //$val = $this->characet($val, $this->postCharset); 415 //$val = $this->characet($val, $this->postCharset);
418 $val = str_replace("'","&apos;",$val); 416 $val = str_replace("'","&apos;",$val);