| 1 | <?php |
||
| 5 | class LogAgent extends Agent |
||
| 6 | { |
||
| 7 | 21 | public function sendSms($tempId, $to, array $data, $content) |
|
| 8 | { |
||
| 9 | 21 | if ($content) { |
|
| 10 | 18 | $this->sendContentSms($to, $content); |
|
| 11 | 18 | } else { |
|
| 12 | 3 | $this->sendTemplateSms($tempId, $to, $data); |
|
| 13 | } |
||
| 14 | 21 | } |
|
| 15 | |||
| 16 | 18 | public function sendContentSms($to, $content) |
|
| 21 | |||
| 22 | 3 | public function sendTemplateSms($tempId, $to, array $data) |
|
| 27 | |||
| 28 | 3 | public function voiceVerify($to, $code) |
|
| 33 | } |
||
| 34 |