Skip to content

Commit fa21a9d

Browse files
兼容dtm服务端口未配置的情况
兼容dtm服务端口未配置的情况
2 parents 4be4b0a + 362209b commit fa21a9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Api/HttpApiFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __invoke(ContainerInterface $container)
2222
$options = $config->get('dtm.guzzle.options', []);
2323
$client = new Client(array_merge(
2424
[
25-
'base_uri' => $server . ':' . $port,
25+
'base_uri' => empty($port) ? $server : $server . ':' . $port,
2626
],
2727
$options
2828
));

0 commit comments

Comments
 (0)