From 474f90995e5bce4e78b9fdb1b7449b381fac3e3d Mon Sep 17 00:00:00 2001 From: wangjianhua Date: Fri, 21 Oct 2022 14:03:43 +0800 Subject: [PATCH] * Update version number to 2.0 --- frontend/config/config.php | 2 +- frontend/db/data.sql | 2 +- frontend/module/backup/config.php | 2 +- frontend/www/index.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/config/config.php b/frontend/config/config.php index 0de673a9..2309aff3 100644 --- a/frontend/config/config.php +++ b/frontend/config/config.php @@ -17,7 +17,7 @@ /* 基本设置。Basic settings. */ $config->platformVersion = getenv('CHART_VERSION');// 渠成平台版本。The version of Qucheng platform. -$config->version = '1.6.0'; // 渠成Web版本。 The version of Web Service of Qucheng. Don't change it. +$config->version = '2.0.0'; // 渠成Web版本。 The version of Web Service of Qucheng. Don't change it. $config->charset = 'UTF-8'; // 编码。 The encoding of Qucheng. $config->cookieLife = time() + 2592000; // Cookie的生存时间。The cookie life time. $config->timezone = 'Asia/Shanghai'; // 时区设置。 The time zone setting, for more see http://www.php.net/manual/en/timezones.php. diff --git a/frontend/db/data.sql b/frontend/db/data.sql index 89d84b66..9a8dc56f 100644 --- a/frontend/db/data.sql +++ b/frontend/db/data.sql @@ -220,7 +220,7 @@ CREATE TABLE IF NOT EXISTS `q_navinstance` ( REPLACE INTO `q_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'navigation', 'global', 'hideInaccessible', 'off'); REPLACE INTO `q_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'common', 'global', 'allowAnonymousAccess', 'off'); -REPLACE INTO `q_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'common', 'global', 'version', '1.4.1'); +REPLACE INTO `q_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'common', 'global', 'version', '2.0.0'); set sql_mode = ''; REPLACE INTO `q_company` (`name`, `admins`) VALUES ('', ',qadmin,'); diff --git a/frontend/module/backup/config.php b/frontend/module/backup/config.php index 9e46575a..2da68cff 100644 --- a/frontend/module/backup/config.php +++ b/frontend/module/backup/config.php @@ -4,4 +4,4 @@ $config->backup->setting = ''; $config->backup->settingDir = '/data/qucheng/backup'; -$config->backup->versionURL = 'https://www.qucheng.com/article/release-1.4-156.html'; +$config->backup->versionURL = 'https://www.qucheng.com/article/release-2.0-185.html'; diff --git a/frontend/www/index.php b/frontend/www/index.php index f4064d28..705cab59 100644 --- a/frontend/www/index.php +++ b/frontend/www/index.php @@ -38,7 +38,7 @@ /* Check for need upgrade. */ $config->installedVersion = $app->getInstalledVersion(); -if($config->version != $config->installedVersion) +if(version_compare(strtolower($config->version), strtolower($config->installedVersion), '>')) { $upgradeHtml = <<