From e2a9d615adeba37b67ecee440b6aa1fbf774df95 Mon Sep 17 00:00:00 2001 From: CGDF <17256673+CGDF-Github@users.noreply.github.com> Date: Thu, 27 Sep 2018 17:45:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E9=80=89=E5=8A=A0=E8=BD=BDJS=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Config.php | 3 ++- config/.config.php.example | 11 ++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/Services/Config.php b/app/Services/Config.php index b5556a8b..a87def0f 100644 --- a/app/Services/Config.php +++ b/app/Services/Config.php @@ -47,7 +47,8 @@ class Config "admin_contact2" => self::get("admin_contact2"), "admin_contact3" => self::get("admin_contact3"), "enable_register" => self::get("enable_register"), - "enable_flag" => self::get("enable_flag") + "enable_flag" => self::get("enable_flag"), + "load_mode_js" => self::get("load_mode_js") ]; } diff --git a/config/.config.php.example b/config/.config.php.example index b00254b2..b9dd4572 100644 --- a/config/.config.php.example +++ b/config/.config.php.example @@ -112,9 +112,7 @@ $System_Config['enable_account_expire_reset_traffic']='0'; //账户到期时重 $System_Config['enable_account_expire_delete']='true'; //账户到期之后是否会删除账户 $System_Config['enable_account_expire_delete_days']='7'; //账户到期几天之后会删除账户 $System_Config['enable_kill']='true'; //是否允许用户注销账户 - -$System_Config['enable_notify_traffic_low'] = 'false'; //流量低提醒 -$System_Config['notify_limit_mode'] = 'per'; //per为按照百分比提醒,mb为按照固定剩余流量提醒 +$System_Config['notify_limit_mode'] = 'false'; //false为关闭per为按照百分比提醒,mb为按照固定剩余流量提醒 $System_Config['notify_limit_value'] = '20'; //当上一项为per时,此处填写百分比;当上一项为mb时,此处填写流量 @@ -132,6 +130,7 @@ $System_Config['telegram_request_token']=''; //Telegram 机器人请求Key //复杂一些,用于校验请求,更新这个参数之后请 php xcat setTelegram $System_Config['enable_welcome_message']='true'; //机器人发送欢迎消息 + //沟通设置-------------------------------------------------------------------- #客服系统设置,注册地址 https://crisp.chat/ $System_Config['enable_crisp']='false'; //是否开启客服系统 @@ -239,12 +238,18 @@ $System_Config['detect_gfw_count']='3'; //尝试次数 #离线检测 $System_Config['enable_detect_offline']='true'; + //V2Ray相关设置------------------------------------------------------------------------------------------ $System_Config['v2ray_port']='443'; //V2Ray端口 $System_Config['v2ray_protocol']='HTTP/2 + TLS'; //V2Ray协议 $System_Config['v2ray_alter_id']='32'; $System_Config['v2ray_level']='0'; + +//前端页面加载模式设置 +$System_Config['load_mode_js']='local'; //JS加载方式,local为从panel本地加载,jsdelivr为从CDN加载 + + //以下所有均为高级设置(一般用不上,不用改--------------------------------------------------------------------- #杂项 $System_Config['enable_login_bind_ip']='false'; //是否将登陆线程和IP绑定