Skip to content

Commit

Permalink
兼容dtm服务端口未配置的情况
Browse files Browse the repository at this point in the history
兼容dtm服务端口未配置的情况
  • Loading branch information
PandaLIU-1111 authored Dec 22, 2022
2 parents 4be4b0a + 362209b commit fa21a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/HttpApiFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __invoke(ContainerInterface $container)
$options = $config->get('dtm.guzzle.options', []);
$client = new Client(array_merge(
[
'base_uri' => $server . ':' . $port,
'base_uri' => empty($port) ? $server : $server . ':' . $port,
],
$options
));
Expand Down

0 comments on commit fa21a9d

Please sign in to comment.