Authored by hf

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

... ... @@ -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)) {
... ...
... ... @@ -471,6 +471,7 @@ class HomeController extends AbstractAction
$service = array(
'header' => array('title' => '在线客服'),
'pageFooter' => true,
'service' => $service
);
... ...