mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:08:42 +00:00
fix(web/blog/write): new blog url
This commit is contained in:
parent
e9a4d15dd2
commit
2a69d50d6d
@ -73,7 +73,7 @@ $blog_editor->save = function ($data) {
|
||||
} else {
|
||||
insertBlog($data);
|
||||
$blog_id = DB::insert_id();
|
||||
(new UOJBlog(['id' => $blog_id, 'type' => 'B']))->setAsCur();
|
||||
UOJBlog::query(strval($blog_id))->setAsCur();
|
||||
$ret['blog_id'] = $blog_id;
|
||||
$ret['blog_write_url'] = UOJBlog::cur()->getUriForWrite();
|
||||
$ret['blog_url'] = UOJBlog::cur()->getBlogUri();
|
||||
|
@ -62,7 +62,7 @@ $blog_editor->save = function ($data) {
|
||||
} else {
|
||||
insertSlide($data);
|
||||
$blog_id = DB::insert_id();
|
||||
(new UOJBlog(['id' => $blog_id, 'type' => 'S']))->setAsCur();
|
||||
UOJBlog::query(strval($blog_id))->setAsCur();
|
||||
$ret['blog_id'] = $blog_id;
|
||||
$ret['blog_write_url'] = UOJBlog::cur()->getUriForWrite();
|
||||
$ret['blog_url'] = UOJBlog::cur()->getBlogUri();
|
||||
|
Loading…
Reference in New Issue
Block a user