Delivery.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace crmeb\services\delivery;
  12. use crmeb\basic\BaseManager;
  13. use think\facade\Config;
  14. /**
  15. * Class Delivery
  16. * @package crmeb\services\delivery
  17. * @mixin \crmeb\services\delivery\storage\Dada
  18. * @mixin \crmeb\services\delivery\storage\Uupt
  19. */
  20. class Delivery extends BaseManager
  21. {
  22. /**
  23. * 空间名
  24. * @var string
  25. */
  26. protected $namespace = '\\crmeb\\services\\delivery\\storage\\';
  27. /**
  28. * 设置默认
  29. * @return mixed
  30. */
  31. protected function getDefaultDriver()
  32. {
  33. return Config::get('delivery.default', 'dada');
  34. }
  35. }