Template.php 638 B

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