Commit c1c70bff authored by Kulya's avatar Kulya 😊

Billz curl req add progress func2

parent 234bcd55
......@@ -202,7 +202,7 @@ require_once (__DIR__.'/keys.php');
CURLOPT_SSL_VERIFYPEER =>false,
CURLOPT_SSL_VERIFYHOST =>false,
CURLOPT_NOPROGRESS => false ,
CURLOPT_PROGRESSFUNCTION => array($this, 'curlprogress'),
CURLOPT_PROGRESSFUNCTION => array("BillzRest", 'curlprogress'),
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer '.$arSettings["token"],
'Content-Type: application/json'
......@@ -271,7 +271,7 @@ require_once (__DIR__.'/keys.php');
}
public function curlprogress($resource,$download_size, $downloaded, $upload_size, $uploaded){
public static function curlprogress($resource,$download_size, $downloaded, $upload_size, $uploaded){
if($download_size > 0)
// echo $downloaded / $download_size * 100;
$percDwn = $downloaded / $download_size * 100;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment