Skip to content

Commit

Permalink
ue35 接口api路径变更 (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
TNED committed Sep 18, 2024
1 parent b97d8b7 commit 204792c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Gateways/Ue35Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Ue35Gateway extends Gateway
{
use HasHttpRequest;

public const ENDPOINT_HOST = 'sms.ue35.cn';
public const ENDPOINT_HOST = 'sms.ue35.net:8443';

public const ENDPOINT_URI = '/sms/interface/sendmess.htm';

Expand Down Expand Up @@ -54,7 +54,7 @@ public function send(PhoneNumberInterface $to, MessageInterface $message, Config
'user-agent' => 'PHP EasySms Client',
];

$result = $this->request('get', self::getEndpointUri().'?'.http_build_query($params), ['headers' => $headers]);
$result = $this->request('get', self::getEndpointUri() . '?' . http_build_query($params), ['headers' => $headers]);
if (is_string($result)) {
$result = json_decode(json_encode(simplexml_load_string($result)), true);
}
Expand All @@ -68,6 +68,6 @@ public function send(PhoneNumberInterface $to, MessageInterface $message, Config

public static function getEndpointUri()
{
return 'http://'.static::ENDPOINT_HOST.static::ENDPOINT_URI;
return 'https://' . static::ENDPOINT_HOST . static::ENDPOINT_URI;
}
}

0 comments on commit 204792c

Please sign in to comment.