u
chenl
2018-12-10 0f36172a3de98a8ff8e4f6ecf23319ff36fb7016
u
1 files modified
7 ■■■■■ changed files
api/common/interface.func.php 7 ●●●●● 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);
    }
}