mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-25 04:27:28 +08:00
refactor: move subscribe templates to dedicated database table
This commit is contained in:
@@ -78,9 +78,7 @@ class Surge extends AbstractProtocol
|
||||
}
|
||||
|
||||
|
||||
$config = admin_setting('subscribe_template_surge', File::exists(base_path(self::CUSTOM_TEMPLATE_FILE))
|
||||
? File::get(base_path(self::CUSTOM_TEMPLATE_FILE))
|
||||
: File::get(base_path(self::DEFAULT_TEMPLATE_FILE)));
|
||||
$config = subscribe_template('surge');
|
||||
|
||||
// Subscription link
|
||||
$subsDomain = request()->header('Host');
|
||||
|
||||
Reference in New Issue
Block a user