chore(problem/remote): not including remote account data when using bot account

This commit is contained in:
Baoshuo Ren 2023-02-05 21:57:33 +08:00
parent 692c512adc
commit 170120157d
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -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);