mirror of
https://github.com/Kori1c/ecs-controller.git
synced 2026-06-08 19:02:31 +08:00
Improve ECS creation and branding
This commit is contained in:
@@ -281,6 +281,8 @@ class ConfigManager
|
||||
$this->saveSetting('monthly_auto_start', !empty($data['monthly_auto_start']) ? '1' : '0');
|
||||
$this->saveSetting('api_interval', $data['api_interval'] ?? 600);
|
||||
$this->saveSetting('enable_billing', !empty($data['enable_billing']) ? '1' : '0');
|
||||
$appBrand = is_array($data['AppBrand'] ?? null) ? $data['AppBrand'] : [];
|
||||
$this->saveSetting('app_logo_url', trim((string) ($appBrand['logo_url'] ?? '')));
|
||||
$this->saveDdnsSettings($data['Ddns'] ?? []);
|
||||
|
||||
if (isset($data['Notification'])) {
|
||||
@@ -496,6 +498,12 @@ class ConfigManager
|
||||
$this->load();
|
||||
}
|
||||
|
||||
public function updateAppLogoUrl($url)
|
||||
{
|
||||
$this->saveSetting('app_logo_url', trim((string) $url));
|
||||
$this->load();
|
||||
}
|
||||
|
||||
private function saveNotificationSettings($notification)
|
||||
{
|
||||
$this->saveSetting('notify_email_enabled', !empty($notification['email_enabled']) ? '1' : '0');
|
||||
|
||||
Reference in New Issue
Block a user