mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 04:28:42 +00:00
fix(blog/slide/write): updateBlog()
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
52f05a3a01
commit
ab4dff592c
@ -42,6 +42,19 @@ if ($blog) {
|
||||
$blog_editor->blog_url = null;
|
||||
}
|
||||
|
||||
function updateBlog($id, $data) {
|
||||
DB::update([
|
||||
"update blogs",
|
||||
"set", [
|
||||
"title" => $data['title'],
|
||||
"content" => $data['content'],
|
||||
"content_md" => $data['content_md'],
|
||||
"is_hidden" => $data['is_hidden'],
|
||||
],
|
||||
"where", ["id" => $id]
|
||||
]);
|
||||
}
|
||||
|
||||
function insertSlide($data) {
|
||||
DB::insert([
|
||||
"insert into blogs",
|
||||
|
Loading…
Reference in New Issue
Block a user