api/common/interface.func.php | ●●●●● patch | view | raw | blame | history |
api/common/interface.func.php
@@ -127,11 +127,12 @@ curl_setopt($con, CURLOPT_POST,true); curl_setopt($con, CURLOPT_RETURNTRANSFER,true); curl_setopt($con, CURLOPT_TIMEOUT,(int)$timeout); curl_setopt($con, CURLOPT_SSL_VERIFYPEER, false); $data = curl_exec($con); if (curl_errno($url)) { return curl_error($url); if (curl_errno($con)) { return curl_error($con); } else { curl_close($url); curl_close($con); return json_decode($data,true); } }