From 89e14e8f8b1f18497d315ed112c8ccd8b7b05465 Mon Sep 17 00:00:00 2001 From: Karson Date: Wed, 10 Mar 2021 10:28:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E8=A3=85=E8=84=9A=E6=9C=ACPHP?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/command/Install.php | 4 ++-- application/admin/command/Install/zh-cn.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/admin/command/Install.php b/application/admin/command/Install.php index f9da2cd7..99414c39 100644 --- a/application/admin/command/Install.php +++ b/application/admin/command/Install.php @@ -294,8 +294,8 @@ class Install extends Command //数据库配置文件 $dbConfigFile = APP_PATH . 'database.php'; - if (version_compare(PHP_VERSION, '7.0.0', '<')) { - throw new Exception(__("The current version %s is too low, please use PHP 7.0 or higher", PHP_VERSION)); + if (version_compare(PHP_VERSION, '7.1.0', '<')) { + throw new Exception(__("The current version %s is too low, please use PHP 7.1 or higher", PHP_VERSION)); } if (!extension_loaded("PDO")) { throw new Exception(__("PDO is not currently installed and cannot be installed")); diff --git a/application/admin/command/Install/zh-cn.php b/application/admin/command/Install/zh-cn.php index 26914d02..a7dc331a 100644 --- a/application/admin/command/Install/zh-cn.php +++ b/application/admin/command/Install/zh-cn.php @@ -26,7 +26,7 @@ return [ 'Please input correct password' => '密码长度必须在6-16位之间,不能包含空格', 'The two passwords you entered did not match' => '两次输入的密码不一致', 'Please input correct website' => '网站名称输入不正确', - 'The current version %s is too low, please use PHP 7.0 or higher' => '当前版本%s过低,请使用PHP7.0以上版本', + 'The current version %s is too low, please use PHP 7.1 or higher' => '当前版本%s过低,请使用PHP7.1以上版本', 'PDO is not currently installed and cannot be installed' => '当前未开启PDO,无法进行安装', 'The current permissions are insufficient to write the file %s' => '当前权限不足,无法写入文件%s', 'Please go to the official website to download the full package or resource package and try to install' => '当前代码仅包含核心代码,请前往官网下载完整包或资源包覆盖后再尝试安装',