first commit

This commit is contained in:
2025-06-25 10:53:11 +08:00
commit 9f374011ae
1240 changed files with 181139 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
<?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 '错误';
}
}