Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webman-blog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏洲
webman-blog
Commits
2a555ead
Commit
2a555ead
authored
May 17, 2022
by
wolfocde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
564341a9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
Banner.php
app/admin/controller/Banner.php
+1
-1
edit.html
app/admin/view/article/edit.html
+1
-1
InstallCheck.php
app/middleware/InstallCheck.php
+1
-1
sqldata.sql
extend/sqldata.sql
+8
-0
No files found.
app/admin/controller/Banner.php
View file @
2a555ead
...
@@ -47,7 +47,7 @@ class Banner extends AdminBase
...
@@ -47,7 +47,7 @@ class Banner extends AdminBase
}
}
try
{
try
{
Validator
::
input
(
$post
,
[
Validator
::
input
(
$post
,
[
'link'
=>
Validator
::
url
()
->
length
(
0
,
255
)
->
setName
(
'链接'
),
'link'
=>
Validator
::
length
(
0
,
255
)
->
setName
(
'链接'
),
]);
]);
}
catch
(
ValidationException
$e
)
{
}
catch
(
ValidationException
$e
)
{
return
$this
->
apiError
(
$e
->
getMessage
());
return
$this
->
apiError
(
$e
->
getMessage
());
...
...
app/admin/view/article/edit.html
View file @
2a555ead
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
layui
.
use
([
'form'
,
'upload'
,
'element'
,
'laydate'
],
function
()
{
layui
.
use
([
'form'
,
'upload'
,
'element'
,
'laydate'
],
function
()
{
var
form
=
layui
.
form
,
upload
=
layui
.
upload
,
element
=
layui
.
element
,
layer
=
layui
.
layer
,
laydate
=
layui
.
laydate
,
$
=
layui
.
$
;
var
form
=
layui
.
form
,
upload
=
layui
.
upload
,
element
=
layui
.
element
,
layer
=
layui
.
layer
,
laydate
=
layui
.
laydate
,
$
=
layui
.
$
;
laydate
.
render
({
laydate
.
render
({
elem
:
'#article_date'
,
format
:
'yyyy
年MM月dd日
'
,
trigger
:
'click'
elem
:
'#article_date'
,
format
:
'yyyy
-MM-dd
'
,
trigger
:
'click'
});
});
form
.
render
();
form
.
render
();
let
editor
=
$
(
"#content"
).
editor
({
let
editor
=
$
(
"#content"
).
editor
({
...
...
app/middleware/InstallCheck.php
View file @
2a555ead
...
@@ -70,7 +70,7 @@ class InstallCheck implements MiddlewareInterface
...
@@ -70,7 +70,7 @@ class InstallCheck implements MiddlewareInterface
mysqli_query
(
$conn
,
$query_sql
);
mysqli_query
(
$conn
,
$query_sql
);
}
}
mysqli_close
(
$conn
);
mysqli_close
(
$conn
);
//
@touch($base_path . 'install.lock');
@
touch
(
$base_path
.
'install.lock'
);
return
$handler
(
$request
);
return
$handler
(
$request
);
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
$errorMsg
=
"连接 MySQL 失败: "
.
mysqli_connect_error
()
.
$e
->
getMessage
();
$errorMsg
=
"连接 MySQL 失败: "
.
mysqli_connect_error
()
.
$e
->
getMessage
();
...
...
extend/sqldata.sql
View file @
2a555ead
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
);
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
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment