This commit is contained in:
ichynul 2021-08-27 15:30:53 +08:00
parent 88f6450179
commit df89f97413
2 changed files with 4 additions and 4 deletions

View File

@ -149,7 +149,7 @@ class Index extends Controller
if (!empty($config['index_page_style']) && $config['index_page_style'] != 1) { //下拉选择的其他模板 if (!empty($config['index_page_style']) && $config['index_page_style'] != 1) { //下拉选择的其他模板
$template = $config['index_page_style']; $template = $config['index_page_style'];
$template = str_replace('__WWWW__', app()->getRootPath(), $template); $template = str_replace('__WWW__', app()->getRootPath(), $template);
if (!is_file($template)) { //其他模板不存在,回到默认 if (!is_file($template)) { //其他模板不存在,回到默认
$template = 'index'; $template = 'index';
@ -562,7 +562,7 @@ class Index extends Controller
} else { //其他 } else { //其他
$template = $config['login_page_style']; $template = $config['login_page_style'];
$template = str_replace('__WWWW__', app()->getRootPath(), $template); $template = str_replace('__WWW__', app()->getRootPath(), $template);
if (!is_file($template)) { //其他模板不存在回到默认3 if (!is_file($template)) { //其他模板不存在回到默认3
$template = 'login3'; $template = 'login3';

View File

@ -128,7 +128,7 @@ class Module extends baseModule
*/ */
public function addIndexView($path, $title) public function addIndexView($path, $title)
{ {
$path = str_replace(app()->getRootPath(), '__WWWW__', $path); $path = str_replace(app()->getRootPath(), '__WWW__', $path);
$this->indexViews[$path] = $title; $this->indexViews[$path] = $title;
return $this; return $this;
@ -153,7 +153,7 @@ class Module extends baseModule
*/ */
public function addLoginView($path, $title) public function addLoginView($path, $title)
{ {
$path = str_replace(app()->getRootPath(), '__WWWW__', $path); $path = str_replace(app()->getRootPath(), '__WWW__', $path);
$this->loginViews[$path] = $title; $this->loginViews[$path] = $title;
return $this; return $this;