@@ -267,7 +267,7 @@ |
||
| 267 | 267 | |
| 268 | 268 | $name = \ucfirst(\str_replace(['-', '_', ''], '', $name)); |
| 269 | 269 | |
| 270 | - return __NAMESPACE__."\\Gateways\\{$name}Gateway"; |
|
| 270 | + return __NAMESPACE__."\\Gateways\\{$name}gateway"; |
|
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | /** |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | public const ENDPOINT_FORMAT = 'json'; |
| 37 | 37 | |
| 38 | - public const ENDPOINT_REGION = '86'; // 中国区,目前只支持此国别 |
|
| 38 | + public const ENDPOINT_REGION = '86'; // 中国区,目前只支持此国别 |
|
| 39 | 39 | |
| 40 | 40 | public const SUCCESS_CODE = 200; |
| 41 | 41 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | 'user-agent' => 'PHP EasySms Client', |
| 55 | 55 | ]; |
| 56 | 56 | |
| 57 | - $result = $this->request('get', self::getEndpointUri() . '?' . http_build_query($params), ['headers' => $headers]); |
|
| 57 | + $result = $this->request('get', self::getEndpointUri().'?'.http_build_query($params), ['headers' => $headers]); |
|
| 58 | 58 | if (is_string($result)) { |
| 59 | 59 | $result = json_decode(json_encode(simplexml_load_string($result)), true); |
| 60 | 60 | } |
@@ -68,6 +68,6 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | public static function getEndpointUri() |
| 70 | 70 | { |
| 71 | - return 'https://' . static::ENDPOINT_HOST . static::ENDPOINT_URI; |
|
| 71 | + return 'https://'.static::ENDPOINT_HOST.static::ENDPOINT_URI; |
|
| 72 | 72 | } |
| 73 | 73 | } |