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

支付宝

@@ -410,7 +410,8 @@ class AopClient { @@ -410,7 +410,8 @@ class AopClient {
410 protected function buildRequestForm($para_temp) { 410 protected function buildRequestForm($para_temp) {
411 411
412 $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'>";
413 - while (list ($key, $val) = each ($para_temp)) { 413 + //while (list ($key, $val) = each ($para_temp)) {
  414 + foreach ($para_temp as $key => $val) {
414 if (false === $this->checkEmpty($val)) { 415 if (false === $this->checkEmpty($val)) {
415 //$val = $this->characet($val, $this->postCharset); 416 //$val = $this->characet($val, $this->postCharset);
416 $val = str_replace("'","&apos;",$val); 417 $val = str_replace("'","&apos;",$val);