mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
fixed 允许PHP5.4以上版本安装
This commit is contained in:
parent
6c8ac608ae
commit
1261735a18
@ -22,7 +22,7 @@ function checkEnv(){
|
|||||||
],
|
],
|
||||||
'php' => [
|
'php' => [
|
||||||
'title' => 'PHP版本',
|
'title' => 'PHP版本',
|
||||||
'limit' => '5.6+',
|
'limit' => '5.4+',
|
||||||
'current' => PHP_VERSION,
|
'current' => PHP_VERSION,
|
||||||
'icon' => 'fa fa-check text-success',
|
'icon' => 'fa fa-check text-success',
|
||||||
],
|
],
|
||||||
@ -41,7 +41,7 @@ function checkEnv(){
|
|||||||
];
|
];
|
||||||
|
|
||||||
//PHP环境检测
|
//PHP环境检测
|
||||||
if($items['php']['current'] < 5.6){
|
if($items['php']['current'] < 5.4){
|
||||||
$items['php']['icon'] = 'fa fa-close text-danger';
|
$items['php']['icon'] = 'fa fa-close text-danger';
|
||||||
session('error', true);
|
session('error', true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user