From 810023ecd48fc376af3cb8bf81164881fdc863f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=83=E5=BD=A9=E6=9E=AB=E5=8F=B6?= <424235748@qq.com> Date: Fri, 19 May 2023 03:04:40 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=AE=89=E8=A3=85=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E5=92=8C=E6=95=B0=E6=8D=AE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 七彩枫叶 <424235748@qq.com> --- app/install/controller/Index.php | 2 +- app/install/install.sql | 7 +++---- app/install/view/index/step1.html | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/install/controller/Index.php b/app/install/controller/Index.php index 13c028f5..e7dfa2ec 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 26eeac30..6e601130 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 e88081a0..bd7310f6 100644 --- a/app/install/view/index/step1.html +++ b/app/install/view/index/step1.html @@ -61,8 +61,8 @@