2026-03-21 02:55:24 +08:00
|
|
|
<?php
|
|
|
|
|
// +----------------------------------------------------------------------
|
2026-03-29 11:22:52 +08:00
|
|
|
// | Author: ScottPan Team
|
2026-03-21 02:55:24 +08:00
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
namespace crmeb\services\template;
|
|
|
|
|
|
|
|
|
|
use crmeb\basic\BaseManager;
|
|
|
|
|
use think\facade\Config;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class Template
|
|
|
|
|
* @package crmeb\services\template
|
|
|
|
|
* @mixin \crmeb\services\template\storage\Wechat
|
|
|
|
|
* @mixin \crmeb\services\template\storage\Subscribe
|
|
|
|
|
*/
|
|
|
|
|
class Template extends BaseManager
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 空间名
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected string $namespace = '\\crmeb\\services\\template\\storage\\';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设置默认
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
|
|
|
|
protected function getDefaultDriver()
|
|
|
|
|
{
|
|
|
|
|
return Config::get('template.default', 'wechat');
|
|
|
|
|
}
|
|
|
|
|
}
|