This commit is contained in:
molong
2022-11-14 20:34:53 +08:00
parent 5cee9dcfab
commit d02cf12370
18 changed files with 4081 additions and 151 deletions

View File

@@ -14,7 +14,14 @@ use app\services\system\ConfigService;
class Index extends Base{
public function version(){
$this->data['data'] = 'v1.5.0';
$system_info_mysql = \think\facade\Db::query("select version() as v;");
$this->data['data'] = [
['label' => '核心版本', 'values' => \think\facade\Env::get('version')],
['label' => '服务器操作系统', 'values' => PHP_OS],
['label' => '运行环境', 'values' => $_SERVER['SERVER_SOFTWARE']],
['label' => 'MYSQL版本', 'values' => $system_info_mysql[0]['v']],
['label' => '上传限制', 'values' => '10']
];
return $this->data;
}