修改登录

This commit is contained in:
邹景立 2021-10-16 16:48:54 +08:00
parent bf4bfbe8d9
commit 62a20e23d3
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class Login extends Controller
$this->captchaType = 'LoginCaptcha';
$this->captchaToken = CodeExtend::uniqidDate(18);
$this->developMode = SystemService::instance()->checkRunMode();
$this->backgroundLogin = strtr(sysconf('login_image') ?: '', '|', ',');
$this->backgrounds = strtr(sysconf('login_image') ?: '', '|', ',');
// 刷新当前后台域名
$host = "{$this->request->scheme()}://{$this->request->host()}";
if ($host !== sysconf('base.site_host')) sysconf('base.site_host', $host);

View File

@ -1,7 +1,7 @@
{extend name="index/index"}
{block name="body"}
<div class="login-container" data-supersized="{$backgroundLogin|default='__ROOT__/static/theme/img/login/bg1.jpg,__ROOT__/static/theme/img/login/bg2.jpg'}">
<div class="login-container" data-supersized="{$backgrounds|default='__ROOT__/static/theme/img/login/bg1.jpg,__ROOT__/static/theme/img/login/bg2.jpg'}">
<div class="header notselect layui-hide-xs">
<a href="{:url('@')}" class="title">{:sysconf('app_name')}<span>{:sysconf('app_version')}</span></a>
{notempty name='developMode'}