mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-25 20:57:43 +08:00
refactor: move subscribe templates to dedicated database table
This commit is contained in:
@@ -65,13 +65,7 @@ class ClashMeta extends AbstractProtocol
|
||||
$user = $this->user;
|
||||
$appName = admin_setting('app_name', 'XBoard');
|
||||
|
||||
$template = admin_setting('subscribe_template_clashmeta', File::exists(base_path(self::CUSTOM_TEMPLATE_FILE))
|
||||
? File::get(base_path(self::CUSTOM_TEMPLATE_FILE))
|
||||
: (
|
||||
File::exists(base_path(self::CUSTOM_CLASH_TEMPLATE_FILE))
|
||||
? File::get(base_path(self::CUSTOM_CLASH_TEMPLATE_FILE))
|
||||
: File::get(base_path(self::DEFAULT_TEMPLATE_FILE))
|
||||
));
|
||||
$template = subscribe_template('clashmeta');
|
||||
|
||||
$config = Yaml::parse($template);
|
||||
$proxy = [];
|
||||
|
||||
Reference in New Issue
Block a user