SmsLoader.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的saas管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace core\sms;
  12. use core\loader\Loader;
  13. /**
  14. * @see SmsLoader
  15. * @package think\facade
  16. * @mixin BaseSms
  17. * @method string|null send(string $mobile, string $template_id, array $data) 发送短信
  18. */
  19. class SmsLoader extends Loader
  20. {
  21. /**
  22. * 空间名
  23. * @var string
  24. */
  25. protected $namespace = '\\core\\sms\\';
  26. protected $config_name = 'sms';
  27. /**
  28. * 默认驱动
  29. * @return mixed
  30. */
  31. protected function getDefault()
  32. {
  33. return config('sms.default');
  34. }
  35. }