mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-05 01:10:37 +00:00
修改php兼容版本
This commit is contained in:
parent
31438f6643
commit
23c7666986
@ -12,13 +12,6 @@
|
||||
// [ 应用入口文件 ]
|
||||
namespace think;
|
||||
|
||||
if ('7.2.0' >= phpversion()) {
|
||||
exit('您的php版本过低,不能安装本软件,兼容php版本7.2~7.4,谢谢!');
|
||||
}
|
||||
if (phpversion() > 8.0) {
|
||||
exit('您的php版本太高,不能安装本软件,兼容php版本7.2~7.4,谢谢!');
|
||||
}
|
||||
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
|
||||
//检测是否已安装CRMEB系统
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
//文件签名
|
||||
$fileValue = '';
|
||||
//最低php版本要求
|
||||
define('PHP_EDITION', '7.2.0');
|
||||
define('PHP_EDITION', '7.1.0');
|
||||
//服务环境检测
|
||||
if (function_exists('saeAutoLoader') || isset($_SERVER['HTTP_BAE_ENV_APPID'])) {
|
||||
showHtml('对不起,当前环境不支持本系统,请使用独立服务或云主机!');
|
||||
@ -18,10 +18,10 @@ if (file_exists('../install.lock')) {
|
||||
@set_time_limit(1000);
|
||||
|
||||
if (PHP_EDITION >= phpversion()) {
|
||||
showHtml('您的php版本过低,不能安装本软件,兼容php版本7.2~7.4,谢谢!');
|
||||
showHtml('您的php版本过低,不能安装本软件,兼容php版本7.1~7.4,谢谢!');
|
||||
}
|
||||
if (phpversion() > 8.0) {
|
||||
showHtml('您的php版本太高,不能安装本软件,兼容php版本7.2~7.4,谢谢!');
|
||||
showHtml('您的php版本太高,不能安装本软件,兼容php版本7.1~7.4,谢谢!');
|
||||
}
|
||||
|
||||
date_default_timezone_set('PRC');
|
||||
|
||||
4
crmeb/vendor/composer/platform_check.php
vendored
4
crmeb/vendor/composer/platform_check.php
vendored
@ -4,8 +4,8 @@
|
||||
|
||||
$issues = array();
|
||||
|
||||
if (!(PHP_VERSION_ID >= 70200)) {
|
||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.';
|
||||
if (!(PHP_VERSION_ID >= 70100)) {
|
||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.0". You are running ' . PHP_VERSION . '.';
|
||||
}
|
||||
|
||||
if ($issues) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user