@@ -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 |
@@ -154,7 +154,7 @@ |
||
154 | 154 | * 根据 指定的 keys 过滤应该参与签名的 header. |
155 | 155 | * |
156 | 156 | * @param array $headers |
157 | - * @param array $keys |
|
157 | + * @param string[] $keys |
|
158 | 158 | * |
159 | 159 | * @return array |
160 | 160 | */ |
@@ -56,7 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * Make a post request with json params. |
58 | 58 | * |
59 | - * @param $endpoint |
|
59 | + * @param string $endpoint |
|
60 | 60 | * @param array $params |
61 | 61 | * @param array $headers |
62 | 62 | * |
@@ -112,7 +112,7 @@ |
||
112 | 112 | * @param string $appKey |
113 | 113 | * @param string $appSecret |
114 | 114 | * |
115 | - * @return array |
|
115 | + * @return string |
|
116 | 116 | */ |
117 | 117 | protected function getHeaders($appKey, $appSecret) |
118 | 118 | { |
@@ -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 | /** |