更新
This commit is contained in:
@@ -24,6 +24,7 @@ class Index extends Base{
|
||||
if(request()->isAjax()){
|
||||
return ['code' => 1, 'data' => 'SentOS'];
|
||||
}else{
|
||||
$area = \think\facade\Db::name('areas')->select();
|
||||
return view('/index');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user