mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 14:48: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,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);
|
||||
|
Loading…
Reference in New Issue
Block a user