@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | 69 | * @param $url |
| 70 | - * @param array $postData |
|
| 70 | + * @param string $postData |
|
| 71 | 71 | * @return array $result |
| 72 | 72 | * @return int $result[].code 返回0则成功,返回其它则错误 |
| 73 | 73 | * @return string $result[].msg 返回消息 |
@@ -20,8 +20,9 @@ |
||
| 20 | 20 | $agentFileName = end($formattedClassName); |
| 21 | 21 | $agents = config("sms.agents"); |
| 22 | 22 | foreach ($agents as $key => $value) { |
| 23 | - if (strcmp($value['executableFile'], $agentFileName) == 0) |
|
| 24 | - return $key; |
|
| 23 | + if (strcmp($value['executableFile'], $agentFileName) == 0) { |
|
| 24 | + return $key; |
|
| 25 | + } |
|
| 25 | 26 | } |
| 26 | 27 | } |
| 27 | 28 | throw new \InvalidArgumentException("Unauthorized access."); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function register() |
| 35 | 35 | { |
| 36 | - $this->app->singleton('sms', function () { |
|
| 36 | + $this->app->singleton('sms', function() { |
|
| 37 | 37 | return new Manager($this->app); |
| 38 | 38 | }); |
| 39 | 39 | } |