mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-24 12:07:28 +08:00
refactor: move subscribe templates to dedicated database table
This commit is contained in:
@@ -27,9 +27,7 @@ class Clash extends AbstractProtocol
|
||||
$appName = admin_setting('app_name', 'XBoard');
|
||||
|
||||
// 优先从数据库配置中获取模板
|
||||
$template = admin_setting('subscribe_template_clash', File::exists(base_path(self::CUSTOM_TEMPLATE_FILE))
|
||||
? File::get(base_path(self::CUSTOM_TEMPLATE_FILE))
|
||||
: File::get(base_path(self::DEFAULT_TEMPLATE_FILE)));
|
||||
$template = subscribe_template('clash');
|
||||
|
||||
$config = Yaml::parse($template);
|
||||
$proxy = [];
|
||||
|
||||
Reference in New Issue
Block a user