mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 23:08:41 +00:00
fix(problem/solutions): 5f15f832af
This commit is contained in:
parent
561d3052b8
commit
581cc68616
@ -118,6 +118,12 @@ if (UOJProblem::cur()->userCanManage(Auth::user()) || UOJProblem::cur()->userPer
|
|||||||
|
|
||||||
$blog_id = DB::insert_id();
|
$blog_id = DB::insert_id();
|
||||||
|
|
||||||
|
DB::insert([
|
||||||
|
"insert into problems_solutions",
|
||||||
|
DB::bracketed_fields(["problem_id", "blog_id"]),
|
||||||
|
"values", DB::tuple([UOJProblem::info('id'), $blog_id]),
|
||||||
|
]);
|
||||||
|
|
||||||
redirectTo(HTML::blog_url(Auth::id(), "/post/{$blog_id}/write"));
|
redirectTo(HTML::blog_url(Auth::id(), "/post/{$blog_id}/write"));
|
||||||
die();
|
die();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user