diff --git a/library/Api/Yohobuy.php b/library/Api/Yohobuy.php index 3b25d3e..cd32935 100644 --- a/library/Api/Yohobuy.php +++ b/library/Api/Yohobuy.php @@ -212,7 +212,16 @@ class Yohobuy unset($data['private_key']); } if (!empty($data)) { - curl_setopt($ch, CURLOPT_POSTFIELDS, $data); + // 新加支持application/x-www-form-urlencoded调用方式 + $str = ''; + foreach ($data as $key => $val) { + $str .= $key . '=' . $val . '&'; + } + + $str = rtrim($str, '&'); + +// curl_setopt($ch, CURLOPT_POSTFIELDS, $data); + curl_setopt($ch, CURLOPT_POSTFIELDS, $str); } $result = curl_exec($ch); if (!$returnJson && !empty($result)) { diff --git a/yohobuy/m.yohobuy.com/application/controllers/Home.php b/yohobuy/m.yohobuy.com/application/controllers/Home.php index b2d109d..7247064 100644 --- a/yohobuy/m.yohobuy.com/application/controllers/Home.php +++ b/yohobuy/m.yohobuy.com/application/controllers/Home.php @@ -471,6 +471,7 @@ class HomeController extends AbstractAction $service = array( 'header' => array('title' => '在线客服'), + 'pageFooter' => true, 'service' => $service );