Skip to content

Commit

Permalink
修改辅助函数
Browse files Browse the repository at this point in the history
  • Loading branch information
herojhc committed Jun 28, 2020
1 parent f9b6d6b commit c4144ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/XinXiHua/SDK/Rest/RestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,7 @@ public function setUp()
{
$base_uri = $this->getServiceConfig('base_uri');
$guzzle_client_config = $this->getConfig('guzzle_client_config', []);
if (!ends_with($base_uri, '/')) {
$base_uri .= '/';
}
$base_uri = rtrim($base_uri, '\/') . './';
$this->printLine("REST CLIENT BASE URI: " . $base_uri);
$this->client = new Client(array_merge($guzzle_client_config, [
'base_uri' => $base_uri,
Expand Down

0 comments on commit c4144ba

Please sign in to comment.