u
chenl
2018-12-10 223f4895368590424a6d97dafe0ce2494a581dcf
u
1 files modified
4 ■■■ changed files
api/common/interface.func.php 4 ●●● patch | view | raw | blame | history
api/common/interface.func.php
@@ -127,7 +127,9 @@
    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);
    if (strpos($url, 'https') !==false){
        curl_setopt($con, CURLOPT_SSL_VERIFYPEER, false);
    }
    $data = curl_exec($con);
    if (curl_errno($con)) {
        return curl_error($con);