diff --git a/app/install/controller/Index.php b/app/install/controller/Index.php index 13c028f52d233140b8a719126c74d5762baae7fd..e7dfa2ec21aaf9d03afc3dc974d6caa575d40136 100644 --- a/app/install/controller/Index.php +++ b/app/install/controller/Index.php @@ -36,7 +36,7 @@ class Index extends BaseController // 检测生产环境 foreach ($this->checkEnv() as $key => $value) { - if ($key == 'php' && (float)$value < 7.3) { + if ($key == 'php' && (float)$value < 8.0.0) { return $this->error('PHP版本过低!'); } } diff --git a/app/install/install.sql b/app/install/install.sql index 26eeac300b72608c5191cf1896131998e06e9e5c..6e6011304c7adc4d6b4754432f3b49fed722c295 100644 --- a/app/install/install.sql +++ b/app/install/install.sql @@ -49,7 +49,7 @@ CREATE TABLE `__PREFIX__admin` ( `delete_time` int(11) NULL DEFAULT NULL COMMENT '软删除标识', PRIMARY KEY (`id`) USING BTREE, INDEX `id`(`id`) USING BTREE, - INDEX `name`(`name`) USING BTREE, + UNIQUE INDEX `name`(`name`) USING BTREE, INDEX `pwd`(`pwd`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '后台管理员表' ROW_FORMAT = DYNAMIC; @@ -76,8 +76,7 @@ CREATE TABLE `__PREFIX__admin_access` ( -- Records of __PREFIX__admin_access -- ---------------------------- INSERT INTO `__PREFIX__admin_access` VALUES (1, '1', '5,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,115,116', NULL); -INSERT INTO `__PREFIX__admin_access` VALUES (2, '2', '5,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,115,116', '8'); -INSERT INTO `__PREFIX__admin_access` VALUES (3, '1', NULL, NULL); +INSERT INTO `__PREFIX__admin_access` VALUES (2, '2', '5,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,115,116', NULL); -- ---------------------------- -- Table structure for __PREFIX__admin_group @@ -104,7 +103,7 @@ CREATE TABLE `__PREFIX__admin_group` ( -- Records of __PREFIX__admin_group -- ---------------------------- INSERT INTO `__PREFIX__admin_group` VALUES (1, 0, 1, '超级管理员', 'admin', 1, 1, '网站超级管理员组的', '100,107,108,109,110,111,112', NULL, 'layui-bg-blue', 1607832158, NULL); -INSERT INTO `__PREFIX__admin_group` VALUES (2, 1, 2, '网站编辑', 'editor', 1, 1, '负责公司软文的编写', '', '5', 'layui-bg-cyan', 1607832158, NULL); +INSERT INTO `__PREFIX__admin_group` VALUES (2, 1, 2, '网站编辑', 'editor', 1, 1, '负责公司软文的编写', '', NULL, 'layui-bg-cyan', 1607832158, NULL); -- ---------------------------- -- Table structure for __PREFIX__admin_log diff --git a/app/install/view/index/step1.html b/app/install/view/index/step1.html index e88081a0ff14255a748777cee1cb6020bf823a63..bd7310f626e1b921312e91e7de0353d5c1d0c405 100644 --- a/app/install/view/index/step1.html +++ b/app/install/view/index/step1.html @@ -61,8 +61,8 @@ php - >= 7.3 - style="color:red;" >{$checkEnv.php} + >= 8.0.0 + style="color:red;" >{$checkEnv.php} mysqli