mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 00:28:42 +00:00
fix(contest/manage): add bonus problem
This commit is contained in:
parent
db0651381a
commit
eaceefbbbc
@ -223,6 +223,12 @@ EOD);
|
|||||||
$contest['extra_config']["problem_{$vdata['problem_id']}"] = $judge_type;
|
$contest['extra_config']["problem_{$vdata['problem_id']}"] = $judge_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($_POST['bonus']) {
|
||||||
|
$contest['extra_config']['bonus']["problem_{$vdata['problem_id']}"] = true;
|
||||||
|
} else {
|
||||||
|
unset($contest['extra_config']['bonus']["problem_{$vdata['problem_id']}"]);
|
||||||
|
}
|
||||||
|
|
||||||
$esc_extra_config = json_encode($contest['extra_config']);
|
$esc_extra_config = json_encode($contest['extra_config']);
|
||||||
DB::update([
|
DB::update([
|
||||||
"update contests",
|
"update contests",
|
||||||
|
Loading…
Reference in New Issue
Block a user