2025-06-25 10:53:11 +08:00

40 lines
876 B
PHP

<?php
/**
* @copyright Copyright (c) 2023-2024 美天智能科技
* @author 李志强
* @link http://www.meteteme.com
*/
declare(strict_types=1);
namespace app\admin\controller;
use app\base\BaseController;
use think\facade\Db;
use think\facade\View;
class Setting extends BaseController
{
public function index()
{
$install = false;
if (file_exists(CMS_ROOT . 'app/install')) {
$install = true;
}
View::assign('install', $install);
$conf = Db::name('Config')->where('id', 1)->find();
$config = [];
if ($conf['content']) {
$config = unserialize($conf['content']);
}
View::assign('config', $config);
View::assign('TP_VERSION', \think\facade\App::version());
return View();
}
public function errorShow()
{
echo '错误';
}
}