Explorar o código

修改php兼容版本

liaofei %!s(int64=2) %!d(string=hai) anos
pai
achega
23c7666986

+ 0 - 7
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系统

+ 3 - 3
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');

+ 2 - 2
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) {