正在显示
1 个修改的文件
包含
6 行增加
和
9 行删除
@@ -408,28 +408,25 @@ class AopClient { | @@ -408,28 +408,25 @@ class AopClient { | ||
408 | * @return 提交表单HTML文本 | 408 | * @return 提交表单HTML文本 |
409 | */ | 409 | */ |
410 | protected function buildRequestForm($para_temp) { | 410 | protected function buildRequestForm($para_temp) { |
411 | - if(cmf_is_wechat()) { | ||
412 | - return $this->gatewayUrl . "?charset=" . trim($this->postCharset); | ||
413 | - }else { | ||
414 | - $sHtml = "<form id='alipaysubmit' name='alipaysubmit' action='" . $this->gatewayUrl . "?charset=" . trim($this->postCharset) . "' method='POST'>"; | 411 | + |
412 | + $sHtml = "<form id='alipaysubmit' name='alipaysubmit' action='".$this->gatewayUrl."?charset=".trim($this->postCharset)."' method='POST'>"; | ||
415 | //while (list ($key, $val) = each ($para_temp)) { | 413 | //while (list ($key, $val) = each ($para_temp)) { |
416 | foreach ($para_temp as $key => $val) { | 414 | foreach ($para_temp as $key => $val) { |
417 | if (false === $this->checkEmpty($val)) { | 415 | if (false === $this->checkEmpty($val)) { |
418 | //$val = $this->characet($val, $this->postCharset); | 416 | //$val = $this->characet($val, $this->postCharset); |
419 | - $val = str_replace("'", "'", $val); | 417 | + $val = str_replace("'","'",$val); |
420 | //$val = str_replace("\"",""",$val); | 418 | //$val = str_replace("\"",""",$val); |
421 | - $sHtml .= "<input type='hidden' name='" . $key . "' value='" . $val . "'/>"; | 419 | + $sHtml.= "<input type='hidden' name='".$key."' value='".$val."'/>"; |
422 | } | 420 | } |
423 | } | 421 | } |
424 | 422 | ||
425 | //submit按钮控件请不要含有name属性 | 423 | //submit按钮控件请不要含有name属性 |
426 | - $sHtml = $sHtml . "<input type='submit' value='ok' style='display:none;''></form>"; | 424 | + $sHtml = $sHtml."<input type='submit' value='ok' style='display:none;''></form>"; |
427 | 425 | ||
428 | - $sHtml = $sHtml . "<script>document.forms['alipaysubmit'].submit();</script>"; | 426 | + $sHtml = $sHtml."<script>document.forms['alipaysubmit'].submit();</script>"; |
429 | 427 | ||
430 | return $sHtml; | 428 | return $sHtml; |
431 | } | 429 | } |
432 | - } | ||
433 | 430 | ||
434 | 431 | ||
435 | public function execute($request, $authToken = null, $appInfoAuthtoken = null) { | 432 | public function execute($request, $authToken = null, $appInfoAuthtoken = null) { |
-
请 注册 或 登录 后发表评论