Skip to content

Commit

Permalink
Merge pull request #1 from nikserg/blank_sign
Browse files Browse the repository at this point in the history
blank_sign
  • Loading branch information
nikserg authored Jul 11, 2022
2 parents 0cf4891 + 0b255c1 commit 4f77c65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions BaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ abstract class BaseClient
//
// Хосты систем
//
public const HOST_DEV = 'https://dev.uc-itcom.ru'; //Тестовая
public const HOST_PROD = 'https://crm.uc-itcom.ru'; //Боевая
public const HOST_DEV = 'https://dev.uc-itcom.ru/app/index.php/publicApi/'; //Тестовая
public const HOST_PROD = 'https://crm.uc-itcom.ru/app/index.php/publicApi/'; //Боевая


//
Expand All @@ -68,13 +68,13 @@ abstract class BaseClient

/**
* @param string $bearerToken Токен доступа пользователя системы
* @param string $host
* @param string $host Адрес системы
*/
public function __construct(string $bearerToken, string $host = self::HOST_DEV)
{
$this->guzzleClient = new Client([
//'debug' => 1,
'base_uri' => $host . '/app/index.php/publicApi/',
'base_uri' => $host,
'headers' => [
'Authorization' => 'Bearer ' . $bearerToken,
],
Expand Down
4 changes: 2 additions & 2 deletions models/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ class Status
* Причина отклонения заявки
*
*
* @var string
* @var string|null
*/
public string $reason;
public ?string $reason;

public function __construct(array $array)
{
Expand Down

0 comments on commit 4f77c65

Please sign in to comment.