Sms.php 615 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xurongyao <763569752@qq.com>
  5. * Date: 2019/11/23 3:46 PM
  6. */
  7. namespace crmeb\services\sms;
  8. use crmeb\basic\BaseManager;
  9. use crmeb\services\sms\storage\Yunxin;
  10. use think\facade\Config;
  11. /**
  12. * Class Sms
  13. * @package crmeb\services\sms
  14. * @mixin Yunxin
  15. */
  16. class Sms extends BaseManager
  17. {
  18. /**
  19. * 空间名
  20. * @var string
  21. */
  22. protected $namespace = '\\crmeb\\services\\sms\\storage\\';
  23. /**
  24. * 默认驱动
  25. * @return mixed
  26. */
  27. protected function getDefaultDriver()
  28. {
  29. return Config::get('sms.default', 'yunxin');
  30. }
  31. }