!39 修正安装检测和数据表

Merge pull request !39 from 七彩枫叶/N/A
This commit is contained in:
meystack
2023-06-13 01:24:30 +00:00
committed by Gitee
3 changed files with 6 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ class Index extends BaseController
// 检测生产环境 // 检测生产环境
foreach ($this->checkEnv() as $key => $value) { 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版本过低'); return $this->error('PHP版本过低');
} }
} }

View File

@@ -49,7 +49,7 @@ CREATE TABLE `__PREFIX__admin` (
`delete_time` int(11) NULL DEFAULT NULL COMMENT '软删除标识', `delete_time` int(11) NULL DEFAULT NULL COMMENT '软删除标识',
PRIMARY KEY (`id`) USING BTREE, PRIMARY KEY (`id`) USING BTREE,
INDEX `id`(`id`) USING BTREE, INDEX `id`(`id`) USING BTREE,
INDEX `name`(`name`) USING BTREE, UNIQUE INDEX `name`(`name`) USING BTREE,
INDEX `pwd`(`pwd`) USING BTREE INDEX `pwd`(`pwd`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '后台管理员表' ROW_FORMAT = DYNAMIC; ) 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 -- 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 (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 (2, '2', '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 (3, '1', NULL, NULL);
-- ---------------------------- -- ----------------------------
-- Table structure for __PREFIX__admin_group -- Table structure for __PREFIX__admin_group
@@ -104,7 +103,7 @@ CREATE TABLE `__PREFIX__admin_group` (
-- Records of __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 (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 -- Table structure for __PREFIX__admin_log

View File

@@ -61,8 +61,8 @@
<tbody> <tbody>
<tr> <tr>
<td>php</td> <td>php</td>
<td> >= 7.3 </td> <td> >= 8.0.0 </td>
<td <elt name="$checkEnv.php" value="7.3"> style="color:red;" </elt> >{$checkEnv.php}</td> <td <elt name="$checkEnv.php" value="8.0.0"> style="color:red;" </elt> >{$checkEnv.php}</td>
</tr> </tr>
<tr> <tr>
<td>mysqli</td> <td>mysqli</td>