diff --git a/app/admin/controller/Login.php b/app/admin/controller/Login.php index 5df6355f0..8ab580788 100644 --- a/app/admin/controller/Login.php +++ b/app/admin/controller/Login.php @@ -48,7 +48,7 @@ class Login extends Controller // 当前运行模式 $this->developMode = RuntimeService::check(); // 后台背景处理 - $images = str2arr(sysconf('login_image') ?: '', '|'); + $images = str2arr(sysconf('login_image|raw') ?: '', '|'); if (empty($images)) $images = [ SystemService::uri('/static/theme/img/login/bg1.jpg'), SystemService::uri('/static/theme/img/login/bg2.jpg'), @@ -61,7 +61,7 @@ class Login extends Controller $this->app->session->set($this->captchaType, $this->captchaToken); } // 更新后台域名 - if ($this->request->domain(true) !== sysconf('base.site_host')) { + if ($this->request->domain(true) !== sysconf('base.site_host|raw')) { sysconf('base.site_host', $this->request->domain(true)); } // 加载登录模板 diff --git a/app/admin/controller/api/Plugs.php b/app/admin/controller/api/Plugs.php index 316f5625c..c67fb08dd 100644 --- a/app/admin/controller/api/Plugs.php +++ b/app/admin/controller/api/Plugs.php @@ -50,7 +50,7 @@ class Plugs extends Controller return response(join("\r\n", [ sprintf("window.taDebug = %s;", $this->app->isDebug() ? 'true' : 'false'), sprintf("window.taAdmin = '%s';", sysuri('admin/index/index', [], false)), - sprintf("window.taEditor = '%s';", sysconf('base.editor') ?: 'ckeditor4'), + sprintf("window.taEditor = '%s';", sysconf('base.editor|raw') ?: 'ckeditor4'), ]))->contentType('application/x-javascript'); } diff --git a/app/admin/controller/api/Upload.php b/app/admin/controller/api/Upload.php index a0cbe22b4..c4ab37c21 100644 --- a/app/admin/controller/api/Upload.php +++ b/app/admin/controller/api/Upload.php @@ -48,12 +48,12 @@ class Upload extends Controller public function index(): Response { $data = ['exts' => []]; - foreach (str2arr(sysconf('storage.allow_exts')) as $ext) { + foreach (str2arr(sysconf('storage.allow_exts|raw')) as $ext) { $data['exts'][$ext] = Storage::mime($ext); } $template = realpath(__DIR__ . '/../../view/api/upload.js'); $data['exts'] = json_encode($data['exts'], JSON_UNESCAPED_UNICODE); - $data['nameType'] = sysconf('storage.name_type') ?: 'xmd5'; + $data['nameType'] = sysconf('storage.name_type|raw') ?: 'xmd5'; return view($template, $data)->contentType('application/x-javascript'); } @@ -219,7 +219,7 @@ class Upload extends Controller $this->error('文件后缀异常,请重新上传文件!'); } // 屏蔽禁止上传指定后缀的文件 - if (!in_array($extension, str2arr(sysconf('storage.allow_exts')))) { + if (!in_array($extension, str2arr(sysconf('storage.allow_exts|raw')))) { $this->error('文件类型受限,请在后台配置规则!'); } if (in_array($extension, ['sh', 'asp', 'bat', 'cmd', 'exe', 'php'])) { @@ -279,7 +279,7 @@ class Upload extends Controller if (in_array($type, ['local', 'qiniu', 'alioss', 'txcos', 'uptype'])) { return $type; } else { - return strtolower(sysconf('storage.type')); + return strtolower(sysconf('storage.type|raw')); } } diff --git a/app/admin/view/auth/index.html b/app/admin/view/auth/index.html index 0148c82c4..a84a9eac4 100644 --- a/app/admin/view/auth/index.html +++ b/app/admin/view/auth/index.html @@ -13,7 +13,7 @@ {block name="content"}