Skip to content

Commit 433074f

Browse files
committed
修复:私有化部署 Host 未被成功设置的问题
1 parent 52fd5c0 commit 433074f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "authing-sdk/php",
33
"description": "authing-php-sdk",
44
"minimum-stability": "stable",
5-
"version": "4.2.1",
5+
"version": "4.2.2",
66
"require": {
77
"php": ">=5.4",
88
"ext-curl": "*",

src/BaseClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public function __construct($userPoolIdOrFunc)
8989
$this->appId = $this->options->appId;
9090
}
9191

92-
if (isset($this->options->host)) {
93-
$this->host = $this->options->host;
92+
if (isset($this->options->appHost)) {
93+
$this->host = $this->options->appHost;
9494
}
9595
}
9696
if (is_null($this->userPoolId) && is_null($this->appId)) {
@@ -100,7 +100,7 @@ public function __construct($userPoolIdOrFunc)
100100
// 设置默认值
101101
self::initDefaultOptions($this->options);
102102

103-
$this->naiveHttpClient = new Client(['base_uri' => $this->options->host ?? $this->host]);
103+
$this->naiveHttpClient = new Client(['base_uri' => $this->options->appHost ?? $this->host]);
104104
}
105105

106106
private static function initDefaultOptions($options) {

0 commit comments

Comments
 (0)