Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Mar 14, 2019
1 parent 8fd4730 commit 67385bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ApiBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ abstract class ApiBase extends Component
/**
* @var string
*/
public $url = 'http://www.v3toys.ru/pear-www/Kiwi_Shop/api.php';
public $url = 'https://v3toys.ru/pear-www/Kiwi_Shop/api.php';

/**
* @var null|string ключ аффилиата в системе V3Project, если он передается то контроль доступа происходит по IP+"affiliate_key"
Expand All @@ -46,6 +46,11 @@ abstract class ApiBase extends Component
*/
public $timeout = 30;

/**
* @var int
*/
public $maxRedirects = 2;

/**
* @param array $data
* @param string $method
Expand All @@ -67,7 +72,8 @@ private function _send(array $data, $method = 'post')
->addHeaders(['user-agent' => 'JSON-RPC PHP Client'])
->setData($data)
->setOptions([
'timeout' => $this->timeout
'timeout' => $this->timeout,
'maxRedirects' => $this->maxRedirects,
]);

$response= $request->send();
Expand Down

0 comments on commit 67385bf

Please sign in to comment.