Skip to content

Commit

Permalink
避免使用动态属性
Browse files Browse the repository at this point in the history
  • Loading branch information
byan authored Feb 8, 2023
1 parent 8a69990 commit 2b7b928
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions AliyunMNS/Http/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public function __construct($endPoint, $accessId,
$this->requestTimeout = $config->getRequestTimeout();
$this->connectTimeout = $config->getConnectTimeout();
$this->securityToken = $securityToken;
$this->endpoint = $endPoint;
$this->parseEndpoint();
$this->parseEndpoint($endPoint);
}

public function getRegion()
Expand All @@ -61,9 +60,9 @@ public function getAccountId()
}

// This function is for SDK internal use
private function parseEndpoint()
private function parseEndpoint($endPoint)
{
$pieces = explode("//", $this->endpoint);
$pieces = explode("//", $endPoint);
$host = end($pieces);

$host_pieces = explode(".", $host);
Expand Down

0 comments on commit 2b7b928

Please # to comment.