mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Login.php
This commit is contained in:
parent
c5083b4f82
commit
eb96f143c2
@ -46,8 +46,10 @@ class Login extends Controller
|
|||||||
// 当前运行模式
|
// 当前运行模式
|
||||||
$this->developMode = SystemService::checkRunMode();
|
$this->developMode = SystemService::checkRunMode();
|
||||||
// 后台背景处理
|
// 后台背景处理
|
||||||
$images = str2arr(sysconf('login_image') ?: '', '|') ?: [
|
$images = str2arr(sysconf('login_image') ?: '', '|');
|
||||||
SystemService::uri('/static/theme/img/login/bg1.jpg'), SystemService::uri('/static/theme/img/login/bg2.jpg'),
|
if (empty($images)) $images = [
|
||||||
|
SystemService::uri('/static/theme/img/login/bg1.jpg'),
|
||||||
|
SystemService::uri('/static/theme/img/login/bg2.jpg'),
|
||||||
];
|
];
|
||||||
$this->loginStyle = sprintf('style="background-image:url(%s)" data-bg-transition="%s"', $images[0], join(',', $images));
|
$this->loginStyle = sprintf('style="background-image:url(%s)" data-bg-transition="%s"', $images[0], join(',', $images));
|
||||||
// 登录验证令牌
|
// 登录验证令牌
|
||||||
|
Loading…
x
Reference in New Issue
Block a user