@@ -62,9 +62,9 @@ |
||
62 | 62 | * @param string $url |
63 | 63 | * @param mixed $data |
64 | 64 | * @param mixed $header |
65 | - * @param mixed $post |
|
65 | + * @param integer $post |
|
66 | 66 | * |
67 | - * @return mixed |
|
67 | + * @return string |
|
68 | 68 | */ |
69 | 69 | public function curl_post($url, $data, $header, $post = 1) |
70 | 70 | { |
@@ -92,7 +92,7 @@ |
||
92 | 92 | if($this->config=='YunTongXun'){ |
93 | 93 | $rest=new Rest(config('sms.agents.'.$this->config)); |
94 | 94 | return $rest->sendTemplateSMS($this->smsData['to'],$this->smsData['templateData'],$this->smsData['templates']['YunTongXun']); |
95 | - }else{ |
|
95 | + } else{ |
|
96 | 96 | throw new \Exception('make sure you have choose a right agent'); |
97 | 97 | } |
98 | 98 | } |