...
|
...
|
@@ -189,8 +189,8 @@ class Yohobuy |
|
|
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
|
|
|
}
|
|
|
$result = curl_exec($ch);
|
|
|
//log打印
|
|
|
UdpLog::info('get调用接口入参url/出参:', 'in:'.$url.' out:'.$result);
|
|
|
//log打印 modify by liangzhifeng at 2016/05/19 for 接口日志太多需要关闭
|
|
|
//UdpLog::info('get调用接口入参url/出参:', 'in:'.$url.' out:'.$result);
|
|
|
if (!$returnJson && !empty($result)) {
|
|
|
$result = json_decode($result, true);
|
|
|
}
|
...
|
...
|
@@ -254,8 +254,8 @@ class Yohobuy |
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $str);
|
|
|
}
|
|
|
$result = curl_exec($ch);
|
|
|
//log打印
|
|
|
UdpLog::info('post调用接口入参url/出参:', 'in:'.$url.'?'.$str.' out:'.$result);
|
|
|
//log打印 modify by liangzhifeng at 2016/05/19 for 接口日志太多需要关闭
|
|
|
//UdpLog::info('post调用接口入参url/出参:', 'in:'.$url.'?'.$str.' out:'.$result);
|
|
|
if (!$returnJson && !empty($result)) {
|
|
|
$result = json_decode($result, true);
|
|
|
}
|
...
|
...
|
|