This commit is contained in:
Baoshuo Ren 2023-02-06 10:15:15 +08:00
parent 7794800603
commit 3d63a011ac
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 3 additions and 3 deletions

View File

@ -241,10 +241,10 @@ if ($pre_submit_check_ret === true && !$no_more_submission) {
return in_array($opt, $remote_provider['submit_type']) ? '' : '无效选项';
}, null);
$answer_form->add('answer_remote_account_data', '', function ($data) {
return json_decode($data) !== null ? '' : '无效数据';
return $_POST['answer_remote_submit_type'] == 'bot' || json_decode($data) !== null ? '' : '无效数据';
}, null);
$answer_form->add('answer_remote_submission_id', '', function ($id) {
return validateUInt($id) ? '' : '无效 ID';
return $_POST['answer_remote_submit_type'] != 'archive' || validateUInt($id) ? '' : '无效 ID';
}, null);
$answer_form->appendHTML(<<<EOD
<h5>Remote Judge 配置</h5>

View File

@ -168,7 +168,7 @@ if ($perm['manager_view']) {
?>
<?php if ($perm['content'] || $perm['manager_view']) : ?>
<div>
<div class="copy-button-container">
<?php UOJSubmission::cur()->echoContent() ?>
</div>