Template.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\template;
  12. use crmeb\basic\BaseManager;
  13. use think\facade\Config;
  14. /**
  15. * Class Template
  16. * @package crmeb\services\template
  17. * @mixin \crmeb\services\template\storage\Wechat
  18. * @mixin \crmeb\services\template\storage\Subscribe
  19. */
  20. class Template extends BaseManager
  21. {
  22. /**
  23. * 空间名
  24. * @var string
  25. */
  26. protected $namespace = '\\crmeb\\services\\template\\storage\\';
  27. /**
  28. * 设置默认
  29. * @return mixed
  30. */
  31. protected function getDefaultDriver()
  32. {
  33. return Config::get('template.default', 'wechat');
  34. }
  35. }