From 23c76669863b87417933c5d3a7e612bcd88bc913 Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Mon, 13 Feb 2023 09:56:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9php=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/public/index.php | 7 ------- crmeb/public/install/index.php | 6 +++--- crmeb/vendor/composer/platform_check.php | 4 ++-- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/crmeb/public/index.php b/crmeb/public/index.php index 89276711a..cc3331638 100755 --- a/crmeb/public/index.php +++ b/crmeb/public/index.php @@ -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系统 diff --git a/crmeb/public/install/index.php b/crmeb/public/install/index.php index 02c3a6ed5..73941e2be 100755 --- a/crmeb/public/install/index.php +++ b/crmeb/public/install/index.php @@ -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'); diff --git a/crmeb/vendor/composer/platform_check.php b/crmeb/vendor/composer/platform_check.php index 589e9e770..6d3407dbb 100644 --- a/crmeb/vendor/composer/platform_check.php +++ b/crmeb/vendor/composer/platform_check.php @@ -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) {