Commit 2a555ead authored by wolfocde's avatar wolfocde

update

parent 564341a9
......@@ -47,7 +47,7 @@ class Banner extends AdminBase
}
try {
Validator::input($post, [
'link' => Validator::url()->length(0, 255)->setName('链接'),
'link' => Validator::length(0, 255)->setName('链接'),
]);
} catch (ValidationException $e) {
return $this->apiError($e->getMessage());
......
......@@ -82,7 +82,7 @@
layui.use(['form', 'upload', 'element', 'laydate'], function () {
var form = layui.form, upload = layui.upload, element = layui.element, layer = layui.layer, laydate = layui.laydate, $ = layui.$;
laydate.render({
elem: '#article_date', format: 'yyyy年MM月dd日', trigger: 'click'
elem: '#article_date', format: 'yyyy-MM-dd', trigger: 'click'
});
form.render();
let editor = $("#content").editor({
......
......@@ -70,7 +70,7 @@ class InstallCheck implements MiddlewareInterface
mysqli_query($conn, $query_sql);
}
mysqli_close($conn);
// @touch($base_path . 'install.lock');
@touch($base_path . 'install.lock');
return $handler($request);
} catch (\Exception $e) {
$errorMsg = "连接 MySQL 失败: " . mysqli_connect_error() . $e->getMessage();
......
INSERT INTO `system_admin` VALUES (1, 'admin', '$2y$10$UVVdW/J89bU3zIU3PxM9OuVHtl6EuaKoUE90kixku7V0.QZVBxoS.', 'XQuUsi', '2022-04-29', 1, '2022-04-29 16:28:04', '2022-05-13 12:39:46');
INSERT INTO `options` VALUES (1, 'logo', '{\"file\": \"\", \"site_blog_logo\": \"\", \"site_admin_logo\": \"/upload/20220510/Gdq1652176288QwLRMI.png\"}', 1, '2022-05-07 22:05:28', '2022-05-10 17:51:29');
INSERT INTO `options` VALUES (2, 'upload', '{\"upload_type\": \"local\", \"upload_allow_ext\": \"xbm,tif,pjp,svgz,jpg,jpeg,ico,tiff,gif,svg,jfif,webp,png,bmp,pjpeg,avif\", \"upload_allow_size\": 10485760}', 1, '2022-05-07 22:05:44', '2022-05-09 09:14:17');
INSERT INTO `options` VALUES (3, 'about', '{\"content\": \"<div><img src=\\\"/upload/20220510/fnu1652176303IzdjNR.jpg\\\" width=\\\"300\\\"></div>\\n<div><br>\\n</div>\\n<div><a href=\\\"https://kaifa.baidu.com/\\\" target=\\\"_blank\\\">发阿斯蒂芬</a><br>\\n</div>\\n<div>大事发生地方</div>\", \"about_me\": \"<div><img src=\\\"/upload/20220510/fnu1652176303IzdjNR.jpg\\\" width=\\\"300\\\"></div>\\n<div><br>\\n</div>\\n<div><a href=\\\"https://kaifa.baidu.com/\\\" target=\\\"_blank\\\">发阿斯蒂芬</a><br>\\n</div>\\n<div>大事发生地方</div>\", \"about_me_desc\": \"阿的所发生的发色的发是\"}', 1, '2022-05-07 23:24:40', '2022-05-11 18:22:09');
INSERT INTO `options` VALUES (4, 'site', '{\"file\": \"\", \"site_ico\": \"/upload/20220510/YsG1652176316pROgHq.ico\", \"site_icp\": \"闽ICP-XXXXXX\", \"site_name\": \"我的博客\", \"site_tongji\": \"\", \"site_version\": \"1.0.0\", \"site_keywords\": \"博客,blog\", \"site_description\": \"这是一个简单的Blog程序,欢迎你来到这里。\"}', 1, '2022-05-07 23:27:46', '2022-05-11 18:33:12');
INSERT INTO `category` VALUES (1, '生活', 1, '2022-04-16 20:54:11', NULL, 0);
INSERT INTO `category` VALUES (2, '技术', 1, '2022-04-16 20:54:11', NULL, 0);
INSERT INTO `category` VALUES (3, '折腾', 1, '2022-04-16 20:54:11', NULL, 0);
INSERT INTO `article` VALUES (2, '白马王子', '啊发生的发生的分\n阿萨德发撒旦发射点发射点发射得分\n阿萨德发生地方', 1, '/upload/20220506\\1651852534FglIUK.jpg', '啊发生的发生的分\n<div>阿萨德发撒旦发射点发射点发射得分</div>\n<div>阿萨德发生地方</div>', '2022-05-08', 0, 1, 0, '2022-05-08 15:55:46', NULL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment