Mobile.php 349 B

12345678910111213141516171819
  1. <?php
  2. namespace app\common\library\message;
  3. use think\Hook;
  4. class Mobile
  5. {
  6. public function send($param)
  7. {
  8. $params = [
  9. 'mobile' => $param['mobile'],
  10. 'template' => $param['template_id'],
  11. 'msg' => $param['data'],
  12. ];
  13. Hook::listen('sms_notice', $params, null, true);
  14. }
  15. }