@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | const ENDPOINT_FORMAT = 'json'; |
| 36 | 36 | |
| 37 | - const ENDPOINT_REGION = '86'; // 中国区,目前只支持此国别 |
|
| 37 | + const ENDPOINT_REGION = '86'; // 中国区,目前只支持此国别 |
|
| 38 | 38 | |
| 39 | 39 | const SUCCESS_CODE = 200; |
| 40 | 40 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | 'user-agent' => 'PHP EasySms Client', |
| 59 | 59 | ]; |
| 60 | 60 | |
| 61 | - $result = $this->request('get', self::getEndpointUri() . '?' . http_build_query($params), ['headers' => $headers,]); |
|
| 61 | + $result = $this->request('get', self::getEndpointUri().'?'.http_build_query($params), ['headers' => $headers, ]); |
|
| 62 | 62 | if (is_string($result)) { |
| 63 | 63 | $result = json_decode(json_encode(simplexml_load_string($result)), true); |
| 64 | 64 | } |
@@ -72,6 +72,6 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | public static function getEndpointUri() |
| 74 | 74 | { |
| 75 | - return 'http://' . static::ENDPOINT_HOST . static::ENDPOINT_URI; |
|
| 75 | + return 'http://'.static::ENDPOINT_HOST.static::ENDPOINT_URI; |
|
| 76 | 76 | } |
| 77 | 77 | } |