mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 02:28:41 +00:00
chore(problem/remote): not including remote account data when using bot account
This commit is contained in:
parent
692c512adc
commit
170120157d
@ -109,13 +109,15 @@ function handleUpload($zip_file_name, $content, $tot_size) {
|
|||||||
|
|
||||||
if (UOJProblem::info('type') == 'remote') {
|
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];
|
$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') {
|
if ($submit_type != 'bot') {
|
||||||
$content['no_rejudge'] = true;
|
$content['no_rejudge'] = true;
|
||||||
}
|
|
||||||
$content['config'][] = ['remote_submit_type', $submit_type];
|
|
||||||
$content['config'][] = ['remote_account_data', $_POST['answer_remote_account_data']];
|
$content['config'][] = ['remote_account_data', $_POST['answer_remote_account_data']];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$content['config'][] = ['remote_submit_type', $submit_type];
|
||||||
|
}
|
||||||
|
|
||||||
UOJSubmission::onUpload($zip_file_name, $content, $tot_size, $is_participating);
|
UOJSubmission::onUpload($zip_file_name, $content, $tot_size, $is_participating);
|
||||||
}
|
}
|
||||||
function handleCustomTestUpload($zip_file_name, $content, $tot_size) {
|
function handleCustomTestUpload($zip_file_name, $content, $tot_size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user