diff --git a/web/app/controllers/problem.php b/web/app/controllers/problem.php index ca91c2c..f9de13c 100644 --- a/web/app/controllers/problem.php +++ b/web/app/controllers/problem.php @@ -109,11 +109,13 @@ function handleUpload($zip_file_name, $content, $tot_size) { if (UOJProblem::info('type') == 'remote') { $submit_type = in_array($_POST['answer_remote_submit_type'], $remote_provider['submit_type']) ? $_POST['answer_remote_submit_type'] : $remote_provider['submit_type'][0]; + if ($submit_type != 'bot') { $content['no_rejudge'] = true; + $content['config'][] = ['remote_account_data', $_POST['answer_remote_account_data']]; } + $content['config'][] = ['remote_submit_type', $submit_type]; - $content['config'][] = ['remote_account_data', $_POST['answer_remote_account_data']]; } UOJSubmission::onUpload($zip_file_name, $content, $tot_size, $is_participating);